-
Notifications
You must be signed in to change notification settings - Fork 89
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
What method can add a version number at the back of the file? #131
Comments
Here's one way to do it. https://github.com/yeoman/generator-gulp-webapp/blob/master/docs/recipes/asset-revisioning.md |
It change the name of the file, but I can't think of change the file name, is just add the version number: |
If you do this with useref, the version hash will be useless, because it will be changed only when you change the file, losing the "no-cache stuff" One way to do this is to correctly handle the cache headers with the server but sometimes it's not possible, so you could do it yourself. Probably there is an automatic lib that can handle that for you |
That obviously doesn't work with gulp-useref v3. Got any other suggestions? |
I submitted a pull request to update that doc last night and it's been merged. I tested that myself and it works. ✋ |
@jonkemp thank you very much, that was definitely helpful. |
@jonkemp It`s work. Thanks. |
Some update about doing:
|
I want the resulting HTML like this:
The text was updated successfully, but these errors were encountered: