Just getting started with Yeoman, Grunt, and Bower. I've created an Angular app using Yeoman and now I'm trying to modify the gruntfile.js. However, live reload only seems to work for files within the 'app' folder. Files in folders like 'app/views/' do not trigger a live reload of my page. The console output shows that Grunt server detects the change (File "app\views\partial1.html" changed.) but live reload isn't happening. I've searched online extensively but haven't been able to figure out how to solve this issue. Below is the watch part in my gruntfile.js:
// Watches files for changes and runs tasks based on the changed files
watch: {
bower: {
files: ['bower.json'],
tasks: ['wiredep']
},
js: {
files: ['<%= yeoman.app %>/scripts/{,*/}*.js'],
tasks: ['newer:jshint:all'],
options: {
livereload: '<%= connect.options.livereload %>'
}
},
jsTest: {
files: ['test/spec/{,*/}*.js'],
tasks: ['newer:jshint:test', 'karma']
},
styles: {
files: ['<%= yeoman.app %>/styles/{,*/}*.css'],
tasks: ['newer:copy:styles', 'autoprefixer']
},
gruntfile: {
files: ['Gruntfile.js']
},
livereload: {
options: {
livereload: '<%= connect.options.livereload %>'
},
files: [
'<%= yeoman.app %>/{,*/}*.html',
'.tmp/styles/{,*/}*.css',
'<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
]
}
Thank you in advance for any assistance!