2023-11-30 04:44:28 +08:00
|
|
|
import { defineConfig } from 'vite'
|
2023-11-17 03:01:19 +08:00
|
|
|
import Inspect from 'vite-plugin-inspect'
|
2023-11-30 04:44:28 +08:00
|
|
|
import { DevPlugin } from './setup/dev'
|
2023-11-30 08:09:44 +08:00
|
|
|
import Vue from '@vitejs/plugin-vue'
|
|
|
|
import * as CompilerSFC from '@vue/compiler-sfc'
|
2023-11-17 03:01:19 +08:00
|
|
|
|
|
|
|
export default defineConfig({
|
2023-11-17 17:35:49 +08:00
|
|
|
build: {
|
2023-12-29 22:11:33 +08:00
|
|
|
target: 'esnext',
|
2024-02-09 00:09:21 +08:00
|
|
|
minify: 'terser',
|
|
|
|
terserOptions: {
|
|
|
|
compress: {
|
|
|
|
pure_getters: true,
|
|
|
|
},
|
|
|
|
},
|
2023-11-17 17:35:49 +08:00
|
|
|
},
|
2023-11-23 23:42:08 +08:00
|
|
|
clearScreen: false,
|
2023-11-30 08:09:44 +08:00
|
|
|
plugins: [
|
|
|
|
Vue({
|
2023-12-29 22:11:33 +08:00
|
|
|
compiler: CompilerSFC,
|
2023-11-30 08:09:44 +08:00
|
|
|
}),
|
|
|
|
DevPlugin(),
|
2023-12-29 22:11:33 +08:00
|
|
|
Inspect(),
|
|
|
|
],
|
2024-01-25 16:49:34 +08:00
|
|
|
optimizeDeps: {
|
|
|
|
exclude: ['@vueuse/core'],
|
|
|
|
},
|
2023-11-17 03:01:19 +08:00
|
|
|
})
|