Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grunt-smartrev vs grunt-filerev #18

Closed
honglio opened this issue Oct 29, 2014 · 3 comments
Closed

grunt-smartrev vs grunt-filerev #18

honglio opened this issue Oct 29, 2014 · 3 comments

Comments

@honglio
Copy link
Owner

honglio commented Oct 29, 2014

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.

@honglio
Copy link
Owner Author

honglio commented Oct 30, 2014

@honglio
Copy link
Owner Author

honglio commented Oct 31, 2014

wait until #28, #5, #6 are done.

@honglio
Copy link
Owner Author

honglio commented Nov 14, 2014

All that mentioned above is over-killed, Let's use grunt-rev. It's pretty smart, and the contributor is reliable one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant