symfony / webpack-encore-bundle

Symfony integration with Webpack Encore!
https://symfony.com/webpack-encore
MIT License
939 stars 83 forks source link

Fix missing integrity hash on preload tags #237

Closed Kocal closed 2 months ago

Kocal commented 2 months ago

I wasn't able to edit #161, so I've opened a new PR and made changes here.

Fix https://github.com/symfony/webpack-encore-bundle/issues/101, fix https://github.com/symfony/webpack-encore-bundle/issues/225

On an existing app, integrity hashes and other attributes are nicely injected into Link header:

image
Kocal commented 2 months ago

Thank you @arnaud-ritti.

mustanggb commented 2 months ago

Hurray! 🎉

Mecanik commented 2 weeks ago

Even with this latest version, I`m not getting any hashes added, anywhere. Of course .enableIntegrityHashes(Encore.isProduction()) is defined. Can you share your HTML definition?