Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 7b48efe

Browse files
authoredDec 5, 2023
feat: respect vite base path option (#263)
* fix(node): support vite base path * chore: fix typo
1 parent a1412f2 commit 7b48efe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/node/src/vite.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export default function VitePluginVueDevTools(options?: VitePluginVueDevToolsOpt
175175
injectTo: 'head',
176176
attrs: {
177177
type: 'module',
178-
src: '/@id/virtual:vue-devtools-path:app.js',
178+
src: `${config.base || '/'}@id/virtual:vue-devtools-path:app.js`,
179179
},
180180
},
181181
// inject inspector script manually to ensure it's loaded after vue-devtools
@@ -184,7 +184,7 @@ export default function VitePluginVueDevTools(options?: VitePluginVueDevToolsOpt
184184
injectTo: 'head',
185185
attrs: {
186186
type: 'module',
187-
src: '/@id/virtual:vue-inspector-path:load.js',
187+
src: `${config.base || '/'}@id/virtual:vue-inspector-path:load.js`,
188188
},
189189
},
190190
],

0 commit comments

Comments
 (0)