Laravel Mix Asset Versioning #476
ericp-mrel
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
Sure, I'd welcome a PR to add mix() as a twig filter / function. Can be located in the System module. Target the wip/1.2 branch please 😉 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm finding the new laravel mix integration kind of interesting and was wondering if there are any plans on adding support for asset versioning. This would allow CSS/JS/images to bust the cache when they change since it's pretty common to have these types of files cached with a long cache lifetime.
It would be handy if there could be a
mix
twig filter added for this feature which would then look at the theme'smix-manifest.json
file.Example:
I've actually created my own custom plugin which integrates Laravel mix versioning using twig filter, so it would be nice if this could be added to Winter CMS so that's one less plugin I have to maintain in all my sites.
Beta Was this translation helpful? Give feedback.
All reactions