File: production-css.markdown

package info (click to toggle)
ruby-compass 0.12.2~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,308 kB
  • sloc: ruby: 10,474; makefile: 42; xml: 14
file content (34 lines) | stat: -rw-r--r-- 926 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: Production Stylesheets
layout: tutorial
classnames:
  - tutorial
---
Production Stylesheets
======================

See the [Configuration Reference](/help/tutorials/configuration-reference/) for a
complete list of available configuration options.

Strategies for Compiling Stylesheets for Production
---------------------------------------------------

**Option A:** Use the compass production defaults.

    compass compile -e production --force

*Note:* This only changes the compass defaults, options you've specified explicitly
in your configuration will not be changed.

**Option B:** Override your configuration file settings on the command line  

    compass compile --output-style compressed --force

**Option C:** Create a separate configuration file for production

    cp config.rb prod_config.rb
    
    ..edit prod_config.rb to suit  your needs..
    
    compass compile -c prod_config.rb --force