You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import { fileURLToPath , URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
import vueJsx from '@vitejs/plugin-vue-jsx'
// https://vite.dev/config/
export default defineConfig ( {
plugins : [
vue ( ) ,
vueDevTools ( ) ,
vueJsx ( { // 注册JSX插件, 可传入可选配置( 按需添加)
// 可选配置: 开启TSX支持、自定义编译选项等
tsx : true ,
babelPlugins : [ ]
} )
] ,
// server:{
// proxy: {
// '/api': {
// target: process.env.VITE_BASE_URL,
// changeOrigin: true,
// secure: false,
// rewrite: (path) => path.replace(/^\/api/, ''),
// },
// },
// },
build : {
chunkSizeWarningLimit : Infinity , // 完全禁用警告
} ,
resolve : {
alias : {
'@' : fileURLToPath ( new URL ( './src' , import . meta . url ) )
} ,
} ,
} )