feat: 增加 vue devtools 启动编辑器环境变量

This commit is contained in:
Hooray
2025-02-27 16:27:08 +08:00
parent c5217aabc1
commit 643d458ac2
+4 -2
View File
@@ -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',