2024-07-28 23:29:47 +08:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
2024-07-29 16:25:23 +08:00
|
|
|
import vuetify from "vite-plugin-vuetify";
|
2024-07-28 23:29:47 +08:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2024-07-29 16:25:23 +08:00
|
|
|
plugins: [
|
|
|
|
vue(),
|
|
|
|
vuetify({
|
|
|
|
autoImport: true,
|
|
|
|
})
|
|
|
|
],
|
2024-08-20 14:29:57 +08:00
|
|
|
build: {
|
|
|
|
minify: 'terser',
|
|
|
|
cssMinify: true,
|
|
|
|
terserOptions: {
|
|
|
|
parse: {
|
|
|
|
html5_comments: false
|
|
|
|
},
|
|
|
|
compress: {
|
|
|
|
drop_console: true,
|
|
|
|
drop_debugger: true,
|
|
|
|
ecma: 2020
|
|
|
|
},
|
|
|
|
format: {
|
|
|
|
ascii_only: true,
|
|
|
|
comments: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-07-28 23:29:47 +08:00
|
|
|
})
|