-
Notifications
You must be signed in to change notification settings - Fork 73
Reload watch on configuration change #39
Comments
It might be possible to add the grunt config/tasks files to the |
Okay I will. We cancompletely remove any watch: {
files: [
'bower_components/**/*',
'!bower_components/**/node_modules'
],
tasks: 'watch'
} I have not tested it yet. |
I hesitate to watch all files even with the negation of watch: {
files: [
'bower_components/**/*.{js,scss,css}',
'!bower_components/**/node_modules'
],
tasks: 'watch'
} |
I know about an issue with many opened files and avoid this with negations. This is a code from my previous Grunt build: grunt:
files:[
'./*'
'<%=locals.path.src%>/<%=locals.path.assets_dev.assets.dir%>/**/*'
'!./*.{md,markdown}'
]
tasks:'build' It watches for all root files that can change something in result. So if I…
…it fires grunt.registerTask 'build', [
'clean:dev'
'copy'
'vendor'
'styles'
'scripts'
'jade'
] And viola, we have an immortal watch that rebuilds everytime when we change somethings that depends on result. It's not an ideal |
Hmm, this is very interesting. I'll try to test some configurations out to see if I can get live-reloading working with a similar setup to your examples. Just to give you a heads up, |
I just made the same locally but added root watch: {
files: [
'grunt/**/*',
'*.{json,js}'
],
tasks: [
'serve'
],
options: {
reload: true
}
}, So any |
Good idea and yeah I think you were on the right track. I just implemented something similar for You can see the changes here. |
So |
Yes, that is correct. |
Good. |
Closing this out as it seems this issue is resolved. |
Completely. |
It would be cool to reload
watch
task when I change somegrunt
configurations (likegrunt/config/*.js
) or install/update something withbower
.The text was updated successfully, but these errors were encountered: