Skip to content

Instantly share code, notes, and snippets.

@saleiva
Created August 14, 2017 11:10
Show Gist options
  • Save saleiva/f064a58e262e53f49f21af7e64773b5d to your computer and use it in GitHub Desktop.
Save saleiva/f064a58e262e53f49f21af7e64773b5d to your computer and use it in GitHub Desktop.
Easy node-sass setup

Installation

  1. Install node
  2. npm install -g node-sass installs node-sass globally -g

Execution

  • node-sass my-styles.scss my-styles.css compiles a single file manually.
  • node-sass my-sass-folder/ -o my-css-folder/ compiles all the files in a folder manually.
  • node-sass -w sass/ -o css/ compiles all the files in a folder whenever a file in the original folder changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment