How do I output compressed CSS from Compass?

好久不见. 提交于 2019-12-03 04:14:10

问题


How do I configure compass to output smaller or compressed CSS files? I tried compass -s compressed but that didn't work.


回答1:


In your config.rb file:

output_style = :compressed

More at http://compass-style.org/help/documentation/configuration-reference/.




回答2:


Did you try with the full name of the argument in command line ?

compass watch --output-style=compressed



回答3:


i use the following terminal command

compass compile -e production --force

reference: http://compass-style.org/help/tutorials/production-css/



来源:https://stackoverflow.com/questions/2335920/how-do-i-output-compressed-css-from-compass

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!