Install ruby using an installer downloaded from their website.
Install Sass: “gem install sass” in the command prompt (cmd).
install compass “gem install compass” in the command prompt (cmd).
go to the directory with the config.rb file which is a configuration file for compass.
Sass watch is triggered by “sass –watch sass:css” but we use the compass watch instead:
“compass watch” which generates css files each time sass files change.
Preparing for production:
1. “compass clean” deletes all generated css files to have a clean css directory.
2. Edit the config.rb file and uncomment this line by deleting the “#” from the beginnning:
#environment = :production
The above tells the compiler to compress / minify the files.
3. “compass compile” generates all css files, not only changes.