You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
grunt-filerev seems to do the same as grunt-smartrev once you add in grunt-filerev-replace. smartrev by default will version and update both files as well as dependencies. e.g. if a jpg changes then not only will it get a new hash, but the link will be updated in any associated CSS and therefore that CSS gets an update too.
A further challenge is then how to reference these assets from dynamic pages (e.g. Express). For this, we have custom code to read the smartrev output. I see there is yet another complimentary filerev plugin here: https://github.com/richardbolt/grunt-filerev-assets. grunt-usemin seems similar but designed more for static HTML pages rather than dynamically generated ones.
The text was updated successfully, but these errors were encountered:
grunt-filerev seems to do the same as grunt-smartrev once you add in grunt-filerev-replace. smartrev by default will version and update both files as well as dependencies. e.g. if a jpg changes then not only will it get a new hash, but the link will be updated in any associated CSS and therefore that CSS gets an update too.
A further challenge is then how to reference these assets from dynamic pages (e.g. Express). For this, we have custom code to read the smartrev output. I see there is yet another complimentary filerev plugin here: https://github.com/richardbolt/grunt-filerev-assets. grunt-usemin seems similar but designed more for static HTML pages rather than dynamically generated ones.
The text was updated successfully, but these errors were encountered: