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
[webpack 5] support publicPath: "auto"
#1514
Comments
Is there an API to get the public path? Right now we use: Lines 533 to 540 in f3ccdd5
|
This was referenced Sep 21, 2020
Closed
fixed by #1516 |
@sokra "auto/xxx.dll.js" |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behaviour
When using the default of
publicPath: "auto"
, html-webpack-plugin should generate a script tag with an URL pointing to the script file.Current behaviour
Environment
webpack 5.0.0-rc.0
html-webpack-plugin: 4.4.1
Config
Copy the minimal
webpack.config.js
to produce this issue:Additional context
webpack has added
output.publicPath: "auto"
. This figures out the correct publicPath at runtime by reading it from the script tag.html-webpack-plugin should understand this magic value and behave like
publicPath: ""
The text was updated successfully, but these errors were encountered: