99.9%
正常运行时间
diff --git a/vite.config.ts b/vite.config.ts
index d49d708..af43c3c 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -7,14 +7,20 @@ import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
- plugins: [
- vue(),
- vueJsx(),
- vueDevTools(),
- ],
+ plugins: [vue(), vueJsx(), vueDevTools()],
resolve: {
alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
+ '@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
+ build: {
+ minify: 'terser',
+ terserOptions: {
+ compress: {
+ drop_console: true,
+ drop_debugger: true,
+ },
+ },
+ sourcemap: false,
+ },
})