有没有办法在Grunt中指定文件依赖?即如果我有: global/page.jadeproject/index.jade -- includes global/page.jadeproject/about.jade -- includes global/page.jadeproject/test.jade 然后我改变了global / page.jade然后我想
global/page.jade project/index.jade -- includes global/page.jade project/about.jade -- includes global/page.jade project/test.jade
然后我改变了global / page.jade然后我想重新编译project / index | about.jade.我检查了插件但找不到任何能提供该功能的插件.
grunt watch以下列方式在gruntfile.js中使用... watch: { scripts: { files: 'src/**/*', tasks: ['buildDevelopment'], options: { interrupt: true, }, } grunt.registerTask('buildDevelopment', ['clean' ,'jade' ,'copy:development' ,'bowercopy:development' ]); ...