From 7b48efe11373403d6fd53433cf61bfbeb75835db Mon Sep 17 00:00:00 2001 From: Eduard Aksamitov Date: Tue, 5 Dec 2023 05:50:02 +0300 Subject: [PATCH] feat: respect vite base path option (#263) * fix(node): support vite base path * chore: fix typo --- packages/node/src/vite.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node/src/vite.ts b/packages/node/src/vite.ts index 9021637f..b6e8e747 100644 --- a/packages/node/src/vite.ts +++ b/packages/node/src/vite.ts @@ -175,7 +175,7 @@ export default function VitePluginVueDevTools(options?: VitePluginVueDevToolsOpt injectTo: 'head', attrs: { type: 'module', - src: '/@id/virtual:vue-devtools-path:app.js', + src: `${config.base || '/'}@id/virtual:vue-devtools-path:app.js`, }, }, // inject inspector script manually to ensure it's loaded after vue-devtools @@ -184,7 +184,7 @@ export default function VitePluginVueDevTools(options?: VitePluginVueDevToolsOpt injectTo: 'head', attrs: { type: 'module', - src: '/@id/virtual:vue-inspector-path:load.js', + src: `${config.base || '/'}@id/virtual:vue-inspector-path:load.js`, }, }, ],