SCSS Not Generating Map Files
Installed product versions
- Visual Studio: 2022 Professional
- This extension: 1.1.21
Description
In Compilerconfig.json.defaults I have enabled map files. I also tried enabling map files per item in compilerconfig.json as a separate test. Both of the options generate the map files.
Steps to recreate
- Enable map files in compilerconfig.json.defaults
- Compile any scss file
Current behavior
Not generating a map file
Expected behavior
A map file should be generated
Are you using the Sass or NodeSass compiler? Can you provide your compilerconfig.json and compilerconfig.json.defaults?
I should be using Sass. I took the default compiler config default file and just enabled maps.
[ { "outputFile": "wwwroot/css/site.css", "inputFile": "wwwroot/css/site.scss" }, { "outputFile": "wwwroot/css/tradeTicket/tradeTicket.css", "inputFile": "wwwroot/css/tradeTicket/tradeTicket.scss" }, { "outputFile": "wwwroot/css/home/entry.css", "inputFile": "wwwroot/css/home/entry.scss" } ]
{ "compilers": { "less": { "autoPrefix": "", "cssComb": "none", "ieCompat": true, "math": null, "strictMath": false, "strictUnits": false, "relativeUrls": true, "rootPath": "", "sourceMapRoot": "", "sourceMapBasePath": "", "sourceMap": true }, "sass": { "autoPrefix": "", "loadPaths": "", "style": "expanded", "relativeUrls": true, "sourceMap": true }, "nodesass": { "autoPrefix": "", "includePath": "", "indentType": "space", "indentWidth": 2, "outputStyle": "nested", "precision": 5, "relativeUrls": true, "sourceMapRoot": "", "lineFeed": "", "sourceMap": true }, "stylus": { "sourceMap": false }, "babel": { "sourceMap": false }, "coffeescript": { "bare": false, "runtimeMode": "node", "sourceMap": false }, "handlebars": { "root": "", "noBOM": false, "name": "", "namespace": "", "knownHelpersOnly": false, "forcePartial": false, "knownHelpers": [], "commonjs": "", "amd": false, "sourceMap": false } }, "minifiers": { "css": { "enabled": false, "termSemicolons": true, "gzip": false }, "javascript": { "enabled": true, "termSemicolons": true, "gzip": false } } }
The map should be generated at the end of the css file; I’ll look into expanding the options for the source maps.
The map should be generated at the end of the css file; I’ll look into expanding the options for the source maps.
Got it thanks! That would be a great addition if possible.