Last active
March 17, 2021 20:57
-
-
Save najathi/9ea676c8efc51178c5872f0fb17d8a46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. npm --version | |
2. npm init -y (or) npm init | |
3. npm install node-sass (or) npm install node-sass -D | |
4. run before add some changes on package.json file | |
"scripts": { | |
"sass": "node-sass -w scss/ -o dist/css --recursive" | |
} | |
package.josn file full code | |
--------------------------------------------- | |
{ | |
"name": "portfolio", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"sass": "node-sass -w scss/ -o dist/css --recursive" | |
}, | |
"keywords": [], | |
"author": "", | |
"license": "ISC", | |
"devDependencies": { | |
"node-sass": "^4.12.0" | |
} | |
} | |
5. npm run sass (run the file of sass project) | |
7. ctrl + s (sass will complile) | |
8. npm cache clean --force (When error will be occured) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment