在使用grunt-contrib-haml时,我可以让Grunt监视HAML更改,但不会向HTML生成任何内容。
我需要在Gruntfile.js文件中添加什么才能发生这种情况?
发布于 2013-05-11 12:00:41
您是否在监视任务中指定了grunt-contrib-haml任务来执行您的haml编译器?也许你做了这样的事情:
watch: {
files : [ 'public/**/*.haml', 'public/**/*.scss', 'public/**/*.coffee' ]
tasks : [ 'compass', 'coffee' ]
}而不是
watch: {
files : [ 'public/**/*.haml', 'public/**/*.scss', 'public/**/*.coffee' ]
tasks : [ 'haml', 'compass', 'coffee' ]
}致以最良好的问候:)
https://stackoverflow.com/questions/16470845
复制相似问题