Answers for "how can i start sass with npm"

CSS
5

Install Node Sass/Scss

npm i node-sass
Posted by: Guest on January-22-2021
0

npm compile sass to css

#compiles a single file manually.
 node-sass my-styles.scss my-styles.css 
 #compiles all the files in a folder manually.
 node-sass my-sass-folder/ -o my-css-folder/
 # compiles all the files in a folder automatically 
 #whenever the source file(s) are modified. -w adds 
 #a watch for changes to the file(s).
 node-sass -w sass/ -o css/
Posted by: Guest on January-28-2022

Browse Popular Code Answers by Language