Easy SASS project and compile with npm.
2 min readFeb 24, 2018
- Install Node.js
- Install NPM
- Create package.json file.
- Write {} in the package.json file.
- Run command: npm install
- Run command to install Node-Sass: npm install node-sass
- 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.