SASS installation and usage

Sass is built upon Ruby. On OS X, Already have Ruby installed by default. If you may to install Ruby in Windows, use this Ruby Installer. On Linux, Rails Ready provides several Ruby essentials.

After the installation is complete, you can go to Terminal (on a OS X) or in Command Prompt (on Windows) then type the following command line

Windows:

gem install compass

Linux / OS X:

sudo gem install compass

For Linux/OS X, depending on your setup, you may or may not need to install gems under the sudo user.

How to use?


The --watch command tells SASS to watch our project for changes, and it’s what automatically converts our SASS files into CSS.

sass --watch scss:css

If we need Sass to generate the files in a specific directory. Try below method

sass --watch path/sass-directory:path/css-directory
shanidkv's picture