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
use contenthash instead of hash #1374
Comments
Why |
Filenames should not contain question marks. You could try |
I prefer to put the hash in the query string rather than the filename. |
I have reported this issue here: webpack/webpack#10638 |
I don't want to put a question mark in filename either, so I want to know if there is a way to replace the hash with contenthash, as mentioned at the beginning of this issue, something like add an option to the hash attribute. |
I will try to bring back the same behaviour as in 3.2 for details please see #1355 |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
I want to insert a content hash instead of hash AFTER '?'
<link href="main.css?[contenthash but not hash]" rel="stylesheet">
<script src="main.js?[contenthash but not hash]"></script>
Maybe config like this:
Because...
I used to append a content hash like this:
with html-webpack-plugin@3.2.0 it works fine
but with html-webpack-plugin@4.0.2 it inject nothing into body
Remark: html-webpack-plugin@4.0.2 could work when config like this
But this is not what I want.
The text was updated successfully, but these errors were encountered: