-
Notifications
You must be signed in to change notification settings - Fork 710
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
Revision CSS & JS #270
Revision CSS & JS #270
Conversation
Forgot to update other recipes, just a sec… |
Ok, ready. |
Closes #255.
Ugh, I'd rather we do not. It will lead to so many support issues about it not working in every edge case users have... |
Ok, I don't have strong feelings either way. We could add it if we implement AssetGraph for the build step, it will do a much better job. Or you don't like revving by default in general? |
I don't like it in general, as there are so many pitfalls and edge-cases to handle, but might be better with AssetGraph. |
Possibly semi-related question: Is there anything super egregious about just using the npm package version to version the assets? |
I’m not sure why you would update versions in |
@silvenon Since we are already using npm for dev dependencies and runtime dependencies (browserify), we go whole hog and just use |
Hm, I think manually appending |
@silvenon Well I am using browserify and not useref so I only have app.css and app.js to append version to. There is no difference between my dev build step from my prod build step except the exclusion of source maps. Would like to pick you guys' brains about how I have things set up. I have used generator-gulp-webapp on close to 15 projects now and I am running into some of it's limitations. I'll collect my thoughts and perhaps make an issue with code examples. |
I'm talking about images, fonts etc. All of those need to be revved too.
Sure, we'd love to hear it! 😃 |
Do you know https://github.com/smysnk/gulp-rev-all? |
Does it rename assets or do you end up with both original and revved files? |
gulp-rev-all not only handles reference re-writing but it also takes child references into consideration when calculating a hashes. |
generator-webapp revisions all assets, I think, but gulp is not a suitable tool for these sorts of things, so CSS & JS will do for now.
Closes #255.