mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2026-04-22 22:57:15 +08:00
配置
This commit is contained in:
@@ -14,11 +14,12 @@ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
|
||||
// import { visualizer } from 'rollup-plugin-visualizer'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default ({ mode }) => {
|
||||
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd())
|
||||
console.log(env)
|
||||
|
||||
return defineConfig({
|
||||
return {
|
||||
experimental: {
|
||||
enableNativePlugin: true // 启用 Rust 原生插件(如 alias/resolve)
|
||||
},
|
||||
@@ -156,5 +157,5 @@ export default ({ mode }) => {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user