Skip to content

Commit 643d458

Browse files
committed
feat: 增加 vue devtools 启动编辑器环境变量
1 parent c5217aa commit 643d458

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎vite/plugins.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ export default function createVitePlugins(mode: string, isBuild = false) {
3636
],
3737
}),
3838

39-
// https://github.com/vuejs/devtools-next
40-
viteEnv.VITE_OPEN_DEVTOOLS && VueDevTools(),
39+
// https://github.com/vuejs/devtools
40+
viteEnv.VITE_OPEN_DEVTOOLS && VueDevTools({
41+
launchEditor: viteEnv.VITE_VUE_DEVTOOLS_LAUNCH_EDITOR ?? 'vscode',
42+
}),
4143

4244
envParse({
4345
dtsPath: 'src/types/env.d.ts',

0 commit comments

Comments
 (0)