sass --watch自动缩小? [英] sass --watch with automatic minify?

查看:86
本文介绍了sass --watch自动缩小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以运行:

sass --watch a.scss:a.css

,但是最终将 a.css 缩小了吗?

but have a.css end up being minified?

在编译样式表时如何避免运行单独的缩小步骤?

How would I avoid having to run a separate minification step as I compile my stylesheet?

推荐答案

sass --watch a.scss:a.css --style compressed

请查阅文档以获取更新:

  • http://sass-lang.com/documentation/file.SASS_REFERENCE.html#using_sass
  • http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style

这篇关于sass --watch自动缩小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆