-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
Option to override original files #149
Comments
Strange feature asked. After gulp-rev you can use gulp-rename and gulp.dest to move your files |
Check out |
It's more like an option than a feature. I know about gulp-rev-delete-original, but it's easier to pass a flag than to add another dependency. |
I can't think of any use case where the first should be written to disk to begin with :) |
Ha, well I like to keep the rev tasks separate from the CSS, JS etc tasks so that it's like a component I can remove or replace easily. So it would looke like: There's also gulp.watch and livereloading that don't play well with revisioning assets because they also update HTML files and that triggers a full reload instead of a local one - like for CSS files. |
That sounds like an interesting idea. Just to be sure, @Francisc you are suggesting that old files should be deleted when new ones are created? For examples, you have a css file that is In this situation, you would like to have an option to tell It makes sense. We'd have to think about it and make sure it's not colliding with other aspects though. |
gulp-rev 是如何知道我修改了哪些文件的?原理是什么?看完源码,没看懂。。。 每一次构建 gulp-rev是如何知道 我上一次构建状态的,我构建的时候,已经加入了很多代码 |
Hi,
Is there a way (or future plans) to provide an option to gulp-rev asking it to rename / replace the original files instead of preserving them and creating new ones?
Thanks.
The text was updated successfully, but these errors were encountered: