waysact / webpack-subresource-integrity

Webpack plugin for enabling Subresource Integrity.
MIT License
357 stars 46 forks source link

Warning: webpack-subresource-integrity: Cannot determine asset for chunk 4953, computed="425936091ab94d4d8648.png", available=4953.d2f266edafb09b67e3c6.js. #159

Closed And2s closed 3 years ago

And2s commented 3 years ago

Angular 12.0.0 (no extra webpack config)

Many warnings like this on ng build:

Warning: webpack-subresource-integrity: Cannot determine asset for chunk 4953, computed="425936091ab94d4d8648.png", available=4953.d2f266edafb09b67e3c6.js. Please report this full error message along with your Webpack configuration at https://github.com/waysact/webpack-subresource-integrity/issues/new

I am using Webpack Asset Modules feature:

new URL('../images/car-door.png', import.meta.url)
jscheid commented 3 years ago

Which version of this plugin (webpack-subresource-integrity) are you using?

jscheid commented 3 years ago

Closing this. Feel free to reopen if you can provide more detail.

And2s commented 3 years ago

Using Angular 12.1.2 framework. It has webpack-subresource-integrity 1.5.2

I import images using Webpack Asset Modules feature.

e.g. new URL('./images/bg.jpeg', import.meta.url).pathname

All images seems successfully imported. Only these warnings appear.