Generating Compressed CSS Output Using SASS in Netbeans

Further to my previous post, I was wondering how to generate compressed CSS output when compiling SCSS files in Netbeans. Netbeans ignores the output_style setting in my config.rb file. I almost never read the generated CSS files, and so easily readable CSS is not a priority for me, however file size is.

I’d already discovered that adding --compass to my compiler options made use of Compass. (File > Project Properties > CSS Preprocessors > Sass tab > Compiler options)

Modifying this to --compass --style compressed generates compressed CSS output. In my case this reduced the size of the generated CSS file from around 170KB to around 120KB, so well worth it.

 

 

[GARD]


COMMENTS