Install Sass in local environment
Create a folder called sass and a file within that called main.scss
(You can use terminal commands (mkdir, touch))
Configuring package.json
Determine how to compile sass by setting scripts in package.json
"scripts": {
"compile:sass": "node-sass sass/main.scss css/style.css -w"
},
To compile Sass, open terminal and type: npm run compile:sass
The -w tag will watch for changes within the source file and auto compile.
Live Server
Install using npm
npm install live-server -save
or install globally
sudo npm install live-server -g
type live-server in command prompt and cmd will auto launch
