Easy SASS project and compile with npm.

Noi Skuberg
2 min readFeb 24, 2018

--

  1. Install Node.js
  2. Install NPM
  3. Create package.json file.
  4. Write {} in the package.json file.
  5. Run command: npm install
  6. Run command to install Node-Sass: npm install node-sass
  7. Write this code into thepackage.json file

“scripts”: {
“scss”: “node-sass — watch scss -o css”
}

8. Craete scss folder and create styles.scss file.

9. Create css folder.

10. Run the Script: npm run scss

11. Write this code into the styles.scss

$test: red;

body {
background-color: $test;
}

Auto Compiling..

Output file in the css folder.

--

--