Skip to content

Commit

Permalink
feat: 增加 vue devtools 启动编辑器环境变量
Browse files Browse the repository at this point in the history
  • Loading branch information
hooray committed Feb 27, 2025
1 parent c5217aa commit 643d458
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vite/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 643d458

Please sign in to comment.