Skip to content

fix(index): Use the runtime publicPath when generating the href #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2018

Conversation

Jessidhia
Copy link
Contributor

@Jessidhia Jessidhia commented Mar 5, 2018

Right now all generated URLs end up being top level URLs.

Fixes #2

Right now all generated URLs end up being top level URLs.
@@ -172,7 +172,7 @@ class MiniCssExtractPlugin {
'linkTag.rel = "stylesheet";',
'linkTag.onload = resolve;',
'linkTag.onerror = reject;',
`linkTag.href = ${linkHrefPath};`,
`linkTag.href = ${mainTemplate.requireFn}.p + ${linkHrefPath};`,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just copied from the JsonpMainTemplatePlugin.

@sokra sokra merged commit 8fe4783 into webpack-contrib:master Mar 5, 2018
@sokra
Copy link
Member

sokra commented Mar 5, 2018

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants