diff --git a/tasks/grunt-contrib-watch.coffee b/tasks/grunt-contrib-watch.coffee index 387b1745..51bed4d0 100644 --- a/tasks/grunt-contrib-watch.coffee +++ b/tasks/grunt-contrib-watch.coffee @@ -23,8 +23,11 @@ module.exports = -> # @todo Add `newer:` when relative `grunt-newer` bug will be fixed tasks: ['sprite'] nunjucks: - files: ['<%= path.source.layouts %>/{,**/}*.nj'] + files: ['<%= path.source.layouts %>/{,**/}*.nj', '!<%= path.source.layouts %>{,**/}_*.nj'] tasks: ['newer:nunjucks'] + nunjucksPartials: + files: ['<%= path.source.layouts %>{,**/}_*.nj'] + tasks: ['nunjucks'] images: files: ['<%= path.source.images %>/{,**/}*.{jpg,jpeg,gif,png}'] tasks: ['newer:responsive_images:thumbnails'] \ No newline at end of file