Notes on Working with Sass

Last modified: 
Sunday, March 29th, 2015
Topics: 
CSSSass

Overview

These are some notes on working with SASS.

Automatically Update CSS Files

Watch for updates to file foo.scss and automatically update foo.css:

sass --watch foo.scss:foo.css

Watch folder sass and update to folder css:

sass --watch sass:css

Compression

Enable compression of CSS output:

sass --watch foo.scss:foo.css --style=compressed

Convert CSS Files to SCSS Files

Recursively create an scss version of all css files in a directory:

sass-convert --from css --to scss --recursive .


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.