Skip to content

Commit 8fe4783

Browse files
authored
Merge pull request webpack-contrib#7 from Kovensky/patch-1
fix(index): Use the runtime publicPath when generating the href
2 parents 3f850db + a488adb commit 8fe4783

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)