FlintSable
11/14/2018 - 6:08 AM

setup-sass

install node-sass to project

// add as a dev dependency
npm i node-sass --save-dev
// take note of the -w in the package.json
// command below is what will be run when compliling sass
npm run compile:sass

// Live server used for simulating server
npm i live-server -g
// in the project directory
live-server
{
  "name": "setup",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "compile:sass": "node-sass sass/main.scss css/style.css -w"
  },
  "author": "Nicholas",
  "license": "ISC",
  "dependencies": {},
  "devDependencies": {
    "node-sass": "^4.10.0"
  }
}