feat(projects): support vite devtools specify the editor by launchEditor option. (#730)

This commit is contained in:
青菜白玉汤
2025-04-04 12:00:52 +08:00
committed by GitHub
parent 4e1b65b6c4
commit 29698bef69
4 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,9 @@
import VueDevtools from 'vite-plugin-vue-devtools';
export function setupDevtoolsPlugin(viteEnv: Env.ImportMeta) {
const { VITE_DEVTOOLS_LAUNCH_EDITOR } = viteEnv;
return VueDevtools({
launchEditor: VITE_DEVTOOLS_LAUNCH_EDITOR
});
}