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