mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-07 08:46:00 +08:00
feat(projects): support vite devtools specify the editor by launchEditor option. (#730)
This commit is contained in:
9
build/plugins/devtools.ts
Normal file
9
build/plugins/devtools.ts
Normal 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
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user