brackets-sass
brackets-sass copied to clipboard
Disabling Comments in the CSS File
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?
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
.
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?
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" } } } }
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"
}
}
}
}