Skip to content

Commit

Permalink
fix: respect base path in virtual development SW
Browse files Browse the repository at this point in the history
  • Loading branch information
wvffle committed Jul 25, 2022
1 parent 9cd988c commit f5667fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function DevPlugin(ctx: PWAPluginContext): Plugin {

return html.replace(
'</body>',
`<script type="module" src="${DEV_SW_VIRTUAL}"></script></body>`,
`<script type="module" src="${options.base}${DEV_SW_VIRTUAL}"></script></body>`,
)
},
},
Expand Down

0 comments on commit f5667fa

Please sign in to comment.