Skip to content

Instantly share code, notes, and snippets.

@Legends
Last active November 25, 2019 12:05
Show Gist options
  • Select an option

  • Save Legends/82643d595f2e686c99bdc97524355532 to your computer and use it in GitHub Desktop.

Select an option

Save Legends/82643d595f2e686c99bdc97524355532 to your computer and use it in GitHub Desktop.
1. Install Node.js
2. Initialize NPM
2.1 Install & configure Python --> https://github.com/nodejs/node-gyp#on-windows
3. npm init -y (to create packages.json)
4. yarn add node-sass
5. add compile command 'scss' under scripts:
6. yarn run scss (this will watch for changes & compile when changes occur)
{
"name": "sass-tutorial",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"scss": "node-sass --watch scss -o wwwroot/css"
},
"author": "",
"license": "ISC",
"dependencies": {
"node-sass": "^4.13.0",
"simplebar": "^5.0.7"
}
}
6.) Cmd.exe: yarn run scss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment