Skip to content

Commit a488adb

Browse files
author
Diogo Franco
authored
fix(index): Use the runtime publicPath when generating the href
Right now all generated URLs end up being top level URLs.
1 parent 3174232 commit a488adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class MiniCssExtractPlugin {
172172
'linkTag.rel = "stylesheet";',
173173
'linkTag.onload = resolve;',
174174
'linkTag.onerror = reject;',
175-
`linkTag.href = ${linkHrefPath};`,
175+
`linkTag.href = ${mainTemplate.requireFn}.p + ${linkHrefPath};`,
176176
'var head = document.getElementsByTagName("head")[0];',
177177
'head.appendChild(linkTag);',
178178
]),

0 commit comments

Comments
 (0)