mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
28 lines
510 B
TypeScript
28 lines
510 B
TypeScript
// vite.config.ts
|
|
import vue from '@vitejs/plugin-vue';
|
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
import path from 'path';
|
|
import { defineConfig } from 'vite';
|
|
import svgLoader from 'vite-svg-loader';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue({
|
|
script: {
|
|
propsDestructure: true,
|
|
defineModel: true,
|
|
},
|
|
}),
|
|
svgLoader(),
|
|
vueJsx(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
define: {
|
|
'process.env': {},
|
|
},
|
|
})
|