Answers for "compile scss to css webpack"

CSS
-2

how to compile scss to css

// Install node-sass
npm i node-sass

// In package.json:  
"scripts": {
	  ...
      "scss": "node-sass — watch scss -o css"
}

// Run the compilation
npm run scss
Posted by: Guest on April-25-2021
2

sass run and compile css

NOTE: you must have installed NPM Package manager if you wanna continue with this method!

EXAMPLE,use --watch in case you want to get it compiled in real time! :

FIRST: install SASS in your project, run this: npm install -g sass 

SECOND, run this:
sass --watch scss/styles.scss css/styles.css
Posted by: Guest on January-26-2022

Browse Popular Code Answers by Language