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

Beginner Question Config / .brackets.json

Open patowod opened this issue 9 years ago • 3 comments

Hi everyone,

I've been looking through the issues here but can't seem to get it right. Basically I'd like to turn off source map and have a compressed output in the same directory as my template.scss. So I put ".brackets.json" in the root of my project directory and inserted. I also tried putting brackets.json in the css folder. Didn't work either. Can someone please hep? Thank you so much in advance! Cheers, patowod

{ "path": { "template.scss": { "sass.enabled": true, "sass.options": { "includePaths": [], "imagePath": null, "sourceComments": false, "outputStyle": "compressed", "sourceMap": false } } } }

My project directory looks like this: | -- project-title ------------ /css ----------------- /template.scss -----------------/.brackets.json

patowod avatar Mar 31 '15 18:03 patowod

You need to add css before template.scss, since it's not on the root folder but inside /css. Also, .brackets.json should be on the root folder. The map should be something like this, don't foget to remove my comments

{
  "path": {
    "css/template.scss": { /*adding the folder here*/
      "sass.enabled": true,
      "sass.options": {
        "includePaths": [],
        "imagePath": null,
        "sourceComments": false,
        "outputStyle": "compressed",
        "sourceMap": false /* sourceMap is giving me issues, try to remove it if this doesn't work*/
      }
    }
  }
}

Your project directory should look like this: -- project-title ------------ /css ----------------- template.scss ---.brackets.json

CydGoblin avatar Apr 01 '15 16:04 CydGoblin

@Turqueso Yay! That works. Thank you very much. Now the only question left would be how to disable sourceMap generation - I had to remove the line in order for the code to work.

patowod avatar Apr 01 '15 20:04 patowod

@patowod you can read about it on #108 but it seems you need them for live preview

CydGoblin avatar Apr 01 '15 20:04 CydGoblin