I want to save one SASS file and output two files with different settings, "output_style" and "environment".
Two methods I've experimented with:
Function in the config.rb file to rerun the compress action on the same SASS file with a different extension, but updates the "output_style" and "environment".
Manually save each of the two SASS files, with something in the top of each file that updates the "output_style" and "environment" variables in the config.rb.
I can do this in Grunt, but I'm thinking it'd be nice to just have CodeKit work.
Options, alternatives?
Step 1: The development configuration
config.rb
should look like this:Step 2: You must add another configuration file
config_minified.rb
and it should look like this:Step 3: Compile as usual and you are ready to go:
The
/css/minified/style.css
will automatically generated.After you follow these steps the project should looks like this:
EDIT
If you don't want to mess with relative path per project you can alter the
config_minified.rb
in order to use a css folder relative to the root folder.