Sass CLI tool
Install
You will only need to run this command once, since it installs the tool globally.
$ npm install -g node-sass
npm
is the command for the node package managerinstall
is telling npm to install a package onto your computer. This is usually into the current working directory, but can also be global-g
makes the install global instead of localnode-sass
is the name of the package you want to install.
Watching a directory for changes
$ node-sass -rw scss -o css
node-sass
runs the node version of the Sass/SCSS compiler to turn SCSS into CSS-rw scss
means "recursively watch the scss directory for changes". This makes the command run indefinitely, it will continue to watch for changes until you kill it with Control-C-o css
means "output into the css directory".