2024-12-01 17:37:17 +08:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import Vue from '@vitejs/plugin-vue'
|
|
|
|
import * as CompilerSFC from '@vue/compiler-sfc'
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
build: {
|
2024-12-02 21:00:34 +08:00
|
|
|
modulePreload: false,
|
2024-12-01 17:37:17 +08:00
|
|
|
target: 'esnext',
|
2024-12-02 09:36:49 +08:00
|
|
|
minify: false,
|
2024-12-01 17:37:17 +08:00
|
|
|
terserOptions: {
|
|
|
|
compress: {
|
|
|
|
pure_getters: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
clearScreen: false,
|
|
|
|
plugins: [
|
|
|
|
Vue({
|
|
|
|
compiler: CompilerSFC,
|
2024-12-05 23:40:57 +08:00
|
|
|
features: {
|
|
|
|
optionsAPI: false,
|
|
|
|
},
|
2024-12-01 17:37:17 +08:00
|
|
|
}),
|
|
|
|
],
|
|
|
|
})
|