Skip to content
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

publicPath added twice on mainScript #26

Open
karoldeland opened this issue Jul 8, 2024 · 0 comments
Open

publicPath added twice on mainScript #26

karoldeland opened this issue Jul 8, 2024 · 0 comments

Comments

@karoldeland
Copy link
Contributor

When defining the publicPath option, we end with our module imported as /publicPath/publicPath/module.js.

The problem comes from this line :
let mainScriptSrc = (publicPath || "/") + mainScript.attributes.src;

mainScript.attributes.src already contains the publicPath prefix.

Maybe it was not the case with previous version of HtmlWebpackPlugin or other?

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

No branches or pull requests

1 participant