vue3-core/playground/vite.config.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
554 B
TypeScript
Raw Normal View History

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'
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',
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,
plugins: [
Vue({
2023-12-29 22:11:33 +08:00
compiler: CompilerSFC,
}),
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
})