有没有办法跑:
sass --watch a.scss:a.css
但是a.css最终被最小化了吗?
a.css
如何避免在编译样式表时运行单独的缩小步骤?
sass --watch a.scss:a.css --style compressed
请查阅文档以获得更新:
如果你使用指南针:
compass watch --output-style compressed
Convert style.scss to style.css设置参数
style.scss
style.css
--no-cache --update $FileName$:$FileNameWithoutExtension$.css
和要刷新的输出路径
$FileNameWithoutExtension$.css
Convert style.scss to compressed style.min.css set the arguments
style.min.css
--no-cache --update $FileName$:$FileNameWithoutExtension$.min.css --style compressed
$FileNameWithoutExtension$.min.css
有很多不同的方法
sass --watch --style=compressed main.scss main.css
或
通过使用visual studio代码扩展实时sass编译器
see more
这招对我很管用:
sass --watch --style=compressed a.scss:a.css
参考