0
當我運行grunt sass
時,我的grunt-contrib-sass
將停止編譯錯誤,並出現回溯,但當sass
通過grunt-contrib-watch
觸發時,將不會停止。如何從grunt-contrib-sass將錯誤傳播到grunt-contrib-watch?
sass: {
development: {
options: {
style: 'expanded'
},
files: [
{
expand: true,
cwd: '<%= paths.development %>stylesheets/',
src: ['*.scss', '*.sass'],
dest: '<%= paths.development %>assets/',
ext: '.css.liquid'
},
]
},
watch: {
sass: {
files: [
'<%= paths.development %>stylesheets/*{.sass,.*scss}'
],
tasks: ['sass:development'] // this swallows errors
},
我似乎無法找到如何防止這種繁重的-的contrib - 薩斯或咕嚕-的contrib手錶文檔中發生的任何信息。沒有錯誤傳播選項。 我錯過了什麼?
我還沒有在其他5個其他以前的基於grunt的項目上有類似watch->sass
設置這個問題,我很好奇互聯網的想法。
我最終使用grunt-shell直接調用本地安裝的sass --watch(這也解決了編譯所有sass的問題)。 – 2014-10-31 23:10:56