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

This commit is contained in:
一寸灰
2025-04-30 16:31:02 +08:00
committed by GitHub
parent e19e94d954
commit a14550eca1
4 changed files with 20 additions and 3 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
});
}