I want to scss (sass) in my Asp.Net MVC Core 6 Application.
What I did is :
Navigated to wwwroot -> npm init
and generate a package.json
Install npm node-sass and then mention this command in package.json file
"scripts": {
"sass": "node-sass styles/ -o css/",
},
and run this command in the terminal npm run sass
after this command, there is a new css file generated within a wwwroot directory with the name of main.css
after that I referred this css file on my layout.cshtml.
I use both node-sass as well as sass.
the commands were different
sass command was
"sass": "sass -w styles:css",
But the result is same ,
I am wondering why my complete sass files and styles are not working ?
Am i missing something in it ?
Please guide ASAP.
thank you