from css to scss code example
Example 1: 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
Example 2: sass to scss
# You can do it with SASS itself
# Nevermind these malware infested sites below
sass-convert style.sass style.scss
Example 3: scss to css
/* Answer to: "scss to css" */
/*
You can convert SCSS to CSS here:
https://jsonformatter.org/scss-to-css
Wanna convert it back? Google "css to scss" and see my answer there!
*/
Example 4: scss to css
Use the "Live Sass Compiler" in Visual Studio Code