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 CompilerVapor from '@vue/compiler-vapor'
|
|
|
|
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',
|
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({
|
|
|
|
template: {
|
2023-12-29 22:11:33 +08:00
|
|
|
compiler: CompilerVapor as any,
|
2023-11-30 08:09:44 +08:00
|
|
|
},
|
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(),
|
|
|
|
],
|
2023-11-17 03:01:19 +08:00
|
|
|
})
|