Commit dc92c18e by Kristine Committed by Michael Mifsud

Update sourceComments documentation in README.md (#1820)

Update sourceComments documentation in README.md
parent 2e7f3708
...@@ -257,7 +257,7 @@ Used to determine how many digits after the decimal will be allowed. For instanc ...@@ -257,7 +257,7 @@ Used to determine how many digits after the decimal will be allowed. For instanc
Type: `Boolean` Type: `Boolean`
Default: `false` Default: `false`
`true` enables additional debugging information in the output file as CSS comments `true` Enables the line number and file where a selector is defined to be emitted into the compiled CSS as a comment. Useful for debugging, especially when using imports and mixins.
### sourceMap ### sourceMap
Type: `Boolean | String | undefined` Type: `Boolean | String | undefined`
...@@ -351,7 +351,7 @@ var result = sass.renderSync({ ...@@ -351,7 +351,7 @@ var result = sass.renderSync({
data: 'body{background:blue; a{color:black;}}', data: 'body{background:blue; a{color:black;}}',
outputStyle: 'compressed', outputStyle: 'compressed',
outFile: '/to/my/output.css', outFile: '/to/my/output.css',
sourceMap: true, // or an absolute or relative (to outFile) path sourceMap: true, // or an absolute or relative (to outFile) path
importer: function(url, prev, done) { importer: function(url, prev, done) {
// url is the path in import as is, which LibSass encountered. // url is the path in import as is, which LibSass encountered.
// prev is the previously resolved path. // prev is the previously resolved path.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment