[英]Using dart sass implementation, grunt-sass is not compiling the css file without throwing an error
這是我卑鄙的聲明。
sass: {
site: {
options: {
implementation: 'dart-sass',
style: 'compressed',
noCache: true
},
dist: {
files: {
'dist/css/jk.css' : 'src/sass/jk.scss'
}
}
}
},
當我在watch子句上運行grunt或grunt觸發器時,我得到此輸出。
Running "sass:site" (sass) task
永遠不會創建文件“ dist / css / jk.css”。 我沒有從Grunt得到其他輸出。 如果我從命令行運行sass,則文件完成不會有任何麻煩。
我不知道為什么會失敗,因為它無聲地失敗了。 如果沒有別的,我很想知道如何啟用冗長的失敗。
更新。 使用-v嘗試運行grunt,這是輸出。
Running "sass:site" (sass) task
Verifying property sass.site exists in config...OK
File: [no files]
Options: precision=10, implementation="dart-sass", style="compressed", noCache
undefined
看來我沒有正確聲明文件。 我很確定路徑是正確的。 如果我從命令行使用相同的路徑運行sass,則它會按預期成功。
添加-v或--verbose返回了錯誤。 我仍然無法編譯sass,但是已解決缺少錯誤的問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.