brocessing / kirby-webpack

:muscle: A Kirby CMS starter-kit with modern frontend tools
MIT License
179 stars 23 forks source link

Hashes for production #33

Open illycz opened 6 years ago

illycz commented 6 years ago

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

Thanks

pqml commented 6 years ago

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)

illycz commented 6 years ago

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