You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
468 B
24 lines
468 B
![]()
6 months ago
|
import { defineConfig } from 'vite'
|
||
|
import path from 'path'
|
||
|
import vue from '@vitejs/plugin-vue'
|
||
|
import vueJsx from '@vitejs/plugin-vue-jsx'
|
||
|
|
||
|
export default defineConfig({
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'@': path.resolve(__dirname, 'src'),
|
||
|
},
|
||
|
},
|
||
|
plugins: [vue(), vueJsx()],
|
||
|
define: {
|
||
|
'process.env': { ...process.env },
|
||
|
},
|
||
|
build: {
|
||
|
minify: true,
|
||
|
commonjsOptions: {
|
||
|
transformMixedEsModules: true,
|
||
|
},
|
||
|
cssCodeSplit: false,
|
||
|
},
|
||
|
})
|