I have an ASP.NET Core application, and I am using SASS to generate the css.
My project file structure is this:
ProjectName
|
--- wwwroot
|
--- css
|
--- index.scss
--- index.css
--- index.min.css
The CSS file can be reached through the web path /css/index.css
.
I want to be able to diagnose the css rules via the SASS file in Chrome Developer tools.
The problem is that Chrome uses the map, but is given an incorrect path to the SASS file. It thinks the fileis at the location /css/wwwroot/css/index.scss
, not /css/index.scss
.
Below are the contents of the file compilerconfig.json.defaults
Is there another setting I can add so that SASS files are located at the correct path?
{
"compilers": {
"sass": {
"sourceMap": true
}
}
}