WebCompiler icon indicating copy to clipboard operation
WebCompiler copied to clipboard

SCSS Not Generating Map Files

Open RacerDelux opened this issue 3 years ago • 4 comments

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

  1. Enable map files in compilerconfig.json.defaults
  2. Compile any scss file

Current behavior

Not generating a map file

Expected behavior

A map file should be generated

RacerDelux avatar Sep 14 '22 21:09 RacerDelux

Are you using the Sass or NodeSass compiler? Can you provide your compilerconfig.json and compilerconfig.json.defaults?

failwyn avatar Sep 16 '22 11:09 failwyn

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 } } }

RacerDelux avatar Sep 16 '22 19:09 RacerDelux

The map should be generated at the end of the css file; I’ll look into expanding the options for the source maps.

failwyn avatar Oct 08 '22 01:10 failwyn

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.

RacerDelux avatar Oct 11 '22 20:10 RacerDelux