Setup scss project

1. npm init
2. to the project folder -> npm install node-sass –save-dev
3. go to package.json -> dependancy -> and you will able to see sass install with version

Create project structure
index.html
CSS/style.css
SCSS/main.scss

in package.json

"scripts": {
      "compile:sass" : "node-sass sass/main.scss css/style.css -w"
  }

in command line

to run sass file…   by doing this scss code will convert to css code in style.css file.

npm run compile:sass

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s