Compiles *.scss files when changed. Updates *.scss files during Live Preview.
- Compile keyboard shortcut (instead of waiting for file changes)
- Compile when
@import
dependencies are updated - Selector highlighting
- Swap
libsass
for Rubysass
compiler implementation- .sass indented syntax support
- Error highlighting
These options are passed through to node-sass.
Reference: Sample project and .brackets.json
preferences file.
Enable/Disable SASS compilation for a file. Default: true
Derived from node-sass README.
output
is a String
relative file path (relative to the input file) for the output CSS file.
Default: <filename>.css
.
includePaths
is an Array
of path String
s to look for any @import
ed files. It is recommended that you use this option if you are using the data
option and have any @import
directives, as otherwise [libsass] may not find your depended-on files.
Default: [<empty>]
imagePath
is a String
that represents the public image path. When using the image-url()
function in a stylesheet, this path will be prepended to the path you supply. eg. Given an imagePath
of /path/to/images
, background-image: image-url('image.png')
will compile to background-image: url("/path/to/images/image.png")
Default: null
outputStyle
is a String
to determine how the final CSS should be rendered. Its value should be one of 'nested'
or 'compressed'
.
['expanded'
and 'compact'
are not currently supported by [libsass]]
Default: nested
sourceComments
is a String
to determine what debug information is included in the output file. Its value should be one of 'none', 'normal', 'map'
. The default is 'map'
.
The map
option will create the source map file in your CSS destination.
[Important: souceComments
is only supported when using the file
option, and does nothing when using data
flag.]
Default: map
If your sourceComments
option is set to map
, sourceMap
allows setting a new path context for the referenced Sass files.
The source map describes a path from your CSS file location, into the the folder where the Sass files are located. In most occasions this will work out-of-the-box but, in some cases, you may need to set a different output.
Default: <filename>.css.map
.
/* REMOVE comments from json file before using this template */
{
"path": {
/* default options */
"sass/bootstrap.scss": {
"sass.enabled": true,
"sass.options": {
"output": "bootstrap.css",
"includePaths": [],
"imagePath": null,
"sourceComments": "map",
"sourceMap": "bootstrap.css.map",
"outputStyle": "nested"
}
},
/* disable compiling @import files in this project */
"sass/bootstrap/*.scss": {
"sass.enabled": false
}
}
}