sass编译出错,有哪位大佬知道什么原因吗

clipboard.png


Sourcemaps are now generated by default, so this flag has no effect.

  error no-cache (Line 37: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.)
  write style.css
  write style.css.map
  
  
  
  有大佬知道是什么原因的吗???
阅读 1.8k
1 个回答

楼主,你好!首先异常包含了两种类型,一种错误,一种是警告。警告不影响最后的文件编译输出的。
1,文件的缩进格式造成 error 的原因,可以修改下。
2,sourcemap 是造成 warning 的原因, 可以试试在 sourcemap 追加一些内容,比如 --sourcemap=file


如有帮助,麻烦点击下采纳,谢谢~

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题