1
我不知道我怎麼能看這裏的文件:gruntjs棘手的配置
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');
};
我可以把「應用程序/車把/ *車把。」但我希望編寫採取正確的路徑動態
東西
你可能也想看看[grunt-regarde](https://github.com/yeoman/grunt-regarde)。我認爲它能更好地完成這項工作。 – 2013-02-25 11:40:26