How do I output compressed CSS from Compass?

前端 未结 3 1500
醉梦人生
醉梦人生 2021-01-31 03:29

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

相关标签:
3条回答
  • 2021-01-31 03:50

    In your config.rb file:

    output_style = :compressed
    

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

    0 讨论(0)
  • 2021-01-31 04:02

    i use the following terminal command

    compass compile -e production --force
    

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

    0 讨论(0)
  • 2021-01-31 04:09

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

    compass watch --output-style=compressed
    
    0 讨论(0)
提交回复
热议问题