Closed SteffenBlake closed 8 months ago
Hello @SteffenBlake,
thanks for the issue report. Yes, I can reproduce the bug.
Try to remove the output.publicPath
option or set as auto
or as the empty string:
publicPath: 'auto'
publicPath: ''
This is a bug, I will fix it for the use case publicPath: '/'
.
The bug is fixed with v2.15.1
.
Please check it. Maybe it fixes the #43 too.
Confirmed resolved in 2.15.1, thanks for the fix!
Current behaviour
Setting
integrity
totrue
(orauto
in production mode), causes the following error to occur if you reference .css or .scss files, whether it is from a .ejs or a .js file:Expected behaviour
Integrity should work for css/scss files.
Reproduction Example
https://github.com/SteffenBlake/html-bundler-webpack-plugin-bug-examples/blob/29131635a37f9be1bd0e9187734d609d3178da99/webpack.config.js#L24
If you enable integrity and execute
npm run build
the error is produced.If you delete this line, the error no longer will be produced and output will occur: https://github.com/SteffenBlake/html-bundler-webpack-plugin-bug-examples/blob/29131635a37f9be1bd0e9187734d609d3178da99/src/views/home.ejs#L3
Environment