kirby-webpack icon indicating copy to clipboard operation
kirby-webpack copied to clipboard

Hashes for production

Open illycz opened this issue 7 years ago • 2 comments

How difficult would it be to implement a hash generation for production assets?

Thanks

illycz avatar Jan 25 '18 13:01 illycz

I would also like this and I think it will be a feature for a new minor version.

The main problem is the dev environment. Bundles are saved by webpack in-memory, so it's more difficult to pass the hashes to php (or something like a bundle manifest). I need to learn more about webpack plugins, or find another solution (like set up a specific header to pass all the hashes from Nodejs to the php server)

pqml avatar Jan 25 '18 13:01 pqml

Blendid do this, maybe you can find some inspiration: https://github.com/vigetlabs/blendid

illycz avatar Jan 25 '18 13:01 illycz