Commit 435a956d by Marcin Cieślak

Merge pull request #1084 from gpapin/master

Master
parents 8bf5db80 ba0c6547
......@@ -218,6 +218,26 @@ Default: `null`
Specify the intended location of the output file. Strongly recommended when outputting source maps so that they can properly refer back to their intended files.
**Attention** enabling this option will **not** write the file on disk for you, it's for internal reference purpose only (to generate the map for example).
Example on how to write it on the disk
```javascript
sass.render({
...
outFile: yourPathTotheFile,
}, function(error, result) { // node-style callback from v3.0.0 onwards
if(!error){
// No errors during the compilation, write this result on the disk
fs.writeFile(yourPathTotheFile, result.css, function(err){
if(!err){
//f ile written on disk
}
});
}
});
});
```
### outputStyle
Type: `String`
Default: `nested`
......
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