mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 13:07:58 +08:00
增加 vue devtools 启动编辑器环境变量
This commit is contained in:
Vendored
+1
@@ -28,4 +28,5 @@ interface ImportMetaEnv {
|
||||
* 是否开启开发者工具
|
||||
*/
|
||||
readonly VITE_OPEN_DEVTOOLS: boolean
|
||||
readonly VITE_VUE_DEVTOOLS_LAUNCH_EDITOR: string
|
||||
}
|
||||
|
||||
+4
-2
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user