In grunt-contrib-watch I want to watch for changes in both <%%= yeoman.app %>/*.html
and changes to any HTML file one folder deeper.
Therefore, my watch task looks like this:
watch: {
html: {
files: ['<%%= yeoman.app %>/{,*/}*.html'],
tasks: ['copy:html', 'replace', 'processhtml:dev']
}
},
When I save changes to <%%= yeoman.app %>/index.html
, the watch task runs as expected. However, when I create a directory inside <%%= yeoman.app %>
then create newfile.html
inside that new directory, watch doesn't get fired.
I have also tried files: ['<%%= yeoman.app %>/*.html', '<%%= yeoman.app %>/*/*.html']
, and even files: ['<%%= yeoman.app %>/**/*.html']
to match all sub directories, but still watch doesn't fire when an HTML file inside the sub directory is edited.
What am I missing?