| | |
| | | |
| | | import { defineConfig } from 'vite' |
| | | import vue from '@vitejs/plugin-vue' |
| | | import vueJsx from '@vitejs/plugin-vue-jsx'; |
| | | import electron from 'vite-plugin-electron' |
| | | |
| | | // https://vitejs.dev/config/ |
| | | export default defineConfig({ |
| | | base:"./", |
| | | plugins: [ |
| | | vue(), |
| | | vueJsx(), |
| | | vue({ |
| | | template: { |
| | | compilerOptions: { |
| | | isCustomElement: (tag) => tag.includes('math-field') |
| | | } |
| | | } |
| | | }), |
| | | // electron({ |
| | | // // 配置 Electron 入口文件 |
| | | // entry: 'electron-commonJS/main.js' |
| | |
| | | additionalData: '@import "./src/assets/style/global.less";' |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | }) |