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

Disabling Comments in the CSS File

Open ph3l1x opened this issue 9 years ago • 4 comments

I can not for the life of me figure out how to disable the comments. I don't want:

/* line 14, C:/Users/r/Desktop/Brackets SASS/scss/style.scss */

in my css file for every single line. There has to be a way to disable this I hope?? "sourceComments": "false", seems to do nothing. It really seems that none of the settings I put in this file really change or do anything. However I know its reading it. If I remove my theme from the top and save it, my theme changes immediately. Here is my full file.

{ "themes.theme": "dark-theme", "path": { "scss/style.scss": { "sass.enabled": true, "sass.options": { "outputDir": "../css/", "imagePath": null, "sourceComments": "true", "outputStyle": "compressed" }, "linting.collapsed": false } }, "linting.collapsed": false, "fonts.fontSize": "13px" }

Even when outputStyle is compressed it still created nested in the .css file. Maybe I am just missing something? But I can live with nested but I can't live with those comments all over my css file. Can you please help me figure out how to disable those?

ph3l1x avatar May 13 '15 15:05 ph3l1x

I can not for the life of me figure out how to disable the comments. I don't want:

/* line 14, C:/Users/r/Desktop/Brackets SASS/scss/style.scss */

in my css file for every single line. There has to be a way to disable this I hope?? "sourceComments": "false", seems to do nothing.

false must be written without quotes: "sourceComments": false


Does the outputDir option work? Maybe brackets-sass doesn't read correctly sass.options.

nicolo-ribaudo avatar May 13 '15 18:05 nicolo-ribaudo

I also face this problem and can not solve it.. My files is like this --index.htm --scss -------style.scss --css --.brackets.json The .brackets.json seems didn't work..Did I put it in the wrong place?

ghost avatar May 27 '15 03:05 ghost

I had the same problem and finally it's solve. The missing string was "includePaths": []" Now my .brackets.json looks like: { "path": { "scss/*.scss": { "sass.enabled": true , "sass.options": { "outputDir": "../css", "includePaths": [], "sourceComments": false, "outputStyle": "compressed" } } } }

miguelventura avatar Sep 11 '15 11:09 miguelventura

Place the .brackets.json to the project directory and correct paths at file content ("outputDir").

{
    "path": {
        "*.scss": {
            "sass.enabled": true,
            "sass.options": {
                "outputDir": "../css",
                "includePaths": [],
                "sourceComments": false,
                "outputStyle": "compressed"
            }
        }
    }
}

formalizator avatar Dec 07 '15 19:12 formalizator