working with scss files html 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: how to link scss to html
You can not "attach" a SASS/SCSS file to an HTML document.
SASS/SCSS is a CSS preprocessor that runs on the server and compiles to
CSS code that your browser understands.
https://www.javatpoint.com/sass-example