我想知道如何在这里观看文件:
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-handlebars');
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
handlebars: {
compile: {
files: {
"app/handlebars/handlebars-templates.js" : [
"app/handlebars/*.handlebars"
]
}
}
},
watch: {
handlebars: {
files: [
'<%= handlebars.compile.files %>' <== what to put here ?
],
tasks: 'default'
}
}
});
grunt.registerTask('default', 'handlebars');
};
我可以放“app/handlebars/*.handlebars”,但我想写一些动态走正确路径的东西