brackets-sass icon indicating copy to clipboard operation
brackets-sass copied to clipboard

Disabling sourceMap doesn't seem to be working

Open isaachinman opened this issue 9 years ago • 4 comments

Hi there, and thanks for this cool extension. Weird that it appears to be the only sass compiler available for Brackets. I'm quite happy with it, but want to be able to disable .css.map files. As I understand it, adding this to one's brackets.json preference file should do the trick:

"sass.options": {
    "sourceMap": false,
}

However, it doesn't stop .css.map files from being compiled. Is this a bug or am I doing something wrong?

isaachinman avatar Aug 28 '15 12:08 isaachinman

This has been bugging me, as well. Looking at the source code, it seems that the boolean alternative to the sourceMap option isn't even being considered. I don't know what the appropriate resolution to this problem is, but I did find a place where you can make a tweak to make it behave correctly. If you find where Brackets is storing the extension's files (for me it's C:\Users\username\AppData\Roaming\Brackets\extensions\user\jasonsanjose.brackets-sass), you can open the main.js file, search for "(map)", and change it to "(map && prefs.options.sourceMap)", and that'll do it.

codestothestars avatar Sep 08 '15 01:09 codestothestars

Same issue

AgamlaRage avatar Oct 26 '16 15:10 AgamlaRage

I changed the main.js like @codestothestars said, and ("sourceMap": false) works now. On MacOS this file is stored here (/Users/username/Library/Application Support/Brackets/extensions/user/jasonsanjose.brackets-sass/) Maybe @jasonsanjose can update this file on next version :)

miguelventura avatar Nov 01 '16 12:11 miguelventura

Same issue for me. In your solution @miguelventura the .map file are not builded but url for this file stay in the css output file with cause error in console.

cschoenecker avatar Jan 17 '18 09:01 cschoenecker