From 7119e49f00d2ed3dce62c9a346bac789cf142685 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 1 May 2010 15:23:29 -0700 Subject: [PATCH] [Docs] Add a tutorial on generating stylesheets for production. --- .../content/tutorials/production-css.markdown | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 doc-src/content/tutorials/production-css.markdown diff --git a/doc-src/content/tutorials/production-css.markdown b/doc-src/content/tutorials/production-css.markdown new file mode 100644 index 00000000..360c230a --- /dev/null +++ b/doc-src/content/tutorials/production-css.markdown @@ -0,0 +1,34 @@ +--- +title: Production Stylesheets +layout: tutorial +classnames: + - tutorial +--- +Production Stylesheets +====================== + +See the [Configuration Reference](/docs/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 +