jasonsanjose / brackets-sass

Enable Live Preview and compile SASS files within Brackets
MIT License
183 stars 34 forks source link

Disabling sourceMap doesn't seem to be working #153

Open isaachinman opened 9 years ago

isaachinman commented 9 years ago

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?

codestothestars commented 9 years ago

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.

AgamlaRage commented 7 years ago

Same issue

miguelventura commented 7 years ago

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 :)

cschoenecker commented 6 years ago

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.