Asset Revisions

Provides a filter to make the theme's asset revision manifest file available in a twig filter.

Back to Asset Revisions Support

Cpt.Meatball
Cpt.Meatball

When I read this, I was like awesome! But when I read some more I got confused. Are the hashed automagically generated or do you have to edit the manifest everytime you update your asset files?

nsrosenqvist
nsrosenqvist

Cpt.Meatball said:

When I read this, I was like awesome! But when I read some more I got confused. Are the hashed automagically generated or do you have to edit the manifest everytime you update your asset files?

You are supposed to use a tool in your build tool chain. Gulp has gulp-rev that does this, grunt has something similar. So this would be an automatic step in the tool chain, no manual editing. This plugin, however, simple provides the filter to that parses the file and provide you with the correct revision.

Cpt.Meatball
Cpt.Meatball

Ohh like that. Guess I didn't read that good. Thanks for the reply!

1-3 of 3