Skip to content

Instantly share code, notes, and snippets.

@craigiswayne craigiswayne/setup.md
Last active Aug 7, 2019

Embed
What would you like to do?
Sass \ Scss NPM Setup

How to Setup npm and scss \ sass

npm init
npm install node-sass --save
mkdir assets
touch assets/styles/style.scss
mkdir dist

In your generated package.json add the following to your scripts entry

"scripts": {
  "sass": "node-sass assets/styles -o dist",
  "watch-sass": "npm run sass && node-sass --watch assets/styles -o dist",
  "watch": "npm run watch-sass"
}

Then to get up and running, just do the following in your command line \ terminal

npm run watch
npm run sass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.