-
Notifications
You must be signed in to change notification settings - Fork 18
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
Multiple busting tasks overwrites busters.json? #20
Comments
Can you show the code of your gulp task(s) that cause the issue? As long as you have the same output name ( |
My
The idea is that each watcher only watches certain files (css or js) and then calls its build task and the bust task afterwards. But when The reason I'm not using one big bust task for everything, is because of the dependencies for each bust task, which make sure that the build tasks are done before the busting. And building everything again when only one file changes slows the building down, of course. |
Oh, I see. In fact, I've considered adding this feature in the past, but there were quite a few issues as mentioned in the README:
But I believe such a feature could still be useful in some cases. Perhaps we can add an option to pass in an initial hashes object, but the user would have to be mindful of the quirks above. |
Hello @UltCombo what is the current status on this? I found your package and liked it but ran into the same issue as @Dylan190774 . Regarding your cons:
It is perfectly fine to mention those cons in the README, because the users have to be aware of those pitfalls. But I think those pitfalls are not so bad that the feature @Dylan190774 asked for shouldn't be implemented. Thanks in advance for any infos or thoughts on this. |
Yep, I've been considering to add an option such as
This option's documentation should have an warning about the pitfalls, I believe that should be enough. I haven't had much free time lately though, PRs are welcome to speed up the implementation. |
Thank you for your reply! Unfortunately I have no experience with PRs or any open source development. Besides I pursue another build strategy now, so that I need to rev my assets only when preparing my app for production. So I still have different gulp watchers in my development mode, but I don't need to provide each time an existing Cheers |
@Dylan190774 - Bust all your static assets at the same time:
|
I created seperate busting tasks in
gulp
for javascript files and for css files, to keep things fast (only build the files that have changed).When I do just
gulp
everything works fine: both the css and js files are inbusters.json
.But when a busting task is called seperately, for example by a
watch
, then the oldbusters.json
that contained all files is overwritten and only contains the files that were in that specific task.Any way to avoid this?
The text was updated successfully, but these errors were encountered: