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
filename
ending with query
will not be injected, e.g. "[name].[hash].css?for-print"
#1367
Comments
That is correct - question marks are not valid for file names on the disk it seems like the question mark is now escaped by webpack. why do you want to have question marks in filenames? |
What do you mean by that? |
Question marks were supported in html-webpack-plugin@3.2.0 but not in html-webpack-plugin@4.0.3
|
I have reported this issue here: webpack/webpack#10638 |
I will try to bring back the same behaviour as in 3.2 for details please see #1355 |
Expected behaviour
In HtmlWebpackPlugin v3.2, the CSS files that affect the global are injected correctly here, and the page is displayed normally.
Current behaviour
After upgrading to v4.0, there should be a
<link>
tag between them to introduce the CSS file exported by the MiniCssExtractPlugin, but it wasn't injected, so the display of all pages has no style.Environment
Config
webpack.common.js
entrypoint-mapping.js
constants.js
css-extract.plugin.js
html.puglin.js
_mixin-cdn.pug
_layout.pug
Relevant Links
Additional context
Similar to #1346, his description is not accurate enough, it has little to do with
[hash]
, but he did say why:That's the point, After version 4.0, files with filenames ending in
?xxx
will not be injected, even if it is an empty query.The text was updated successfully, but these errors were encountered: