我有一个 ASP.NET Core 应用程序,我正在使用 SASS 生成 css。
我的项目文件结构是这样的:
ProjectName
|
--- wwwroot
|
--- css
|
--- index.scss
--- index.css
--- index.min.css
可以通过 web 路径访问 CSS 文件/css/index.css
。
我希望能够通过 Chrome 开发者工具中的 SASS 文件诊断 css 规则。
问题是 Chrome 使用地图,但给出的 SASS 文件路径不正确。它认为文件在该位置/css/wwwroot/css/index.scss
,而不是/css/index.scss
。
以下是文件内容compilerconfig.json.defaults
是否可以添加其他设置以使 SASS 文件位于正确的路径?
{
"compilers": {
"sass": {
"sourceMap": true
}
}
}