Closed chuwy closed 11 years ago
Seems that it was my fault. grunt-watch task was watching root directory, coffeescript was compiled and js changed, therefore watch task is restarted infinitely.
I am facing the same problem. My DOM is not getting stabilised, while it is loading infinitely. Here's my watch.js code:
module.exports = {
scripts: {
files: [
'src/app/**/*.js'
],
tasks: ['jshint','karma:unit','copy','injector','replace'],
options: {
spawn: false,
livereload:true
},
}
};
I have removed all the files from files array except my main app folder containing JS.
I'm starting project with grunt-0.4.0rc5 and grunt-reload from master branch. I configured grunt-reload to work with liverload extension and install it. After I run grunt it said:
And after I made some changes in my watched files it starts to run my default task without stop. May be it caused by last changes it grunt-0.4.0rc5 API associated with this.file https://github.com/gruntjs/grunt/issues/606 ?