mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-06 14:53:50 +08:00
feat: 增加 vue devtools 启动编辑器环境变量
This commit is contained in:
+4
-2
@@ -36,8 +36,10 @@ export default function createVitePlugins(mode: string, isBuild = false) {
|
||||
],
|
||||
}),
|
||||
|
||||
// https://github.com/vuejs/devtools-next
|
||||
viteEnv.VITE_OPEN_DEVTOOLS && VueDevTools(),
|
||||
// https://github.com/vuejs/devtools
|
||||
viteEnv.VITE_OPEN_DEVTOOLS && VueDevTools({
|
||||
launchEditor: viteEnv.VITE_VUE_DEVTOOLS_LAUNCH_EDITOR ?? 'vscode',
|
||||
}),
|
||||
|
||||
envParse({
|
||||
dtsPath: 'src/types/env.d.ts',
|
||||
|
||||
Reference in New Issue
Block a user