Commit f5137603 by Geoffrey Papin

Explicitely state the outFile will not write file on disk

parent 8bf5db80
...@@ -218,6 +218,26 @@ Default: `null` ...@@ -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. 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
```
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 ### outputStyle
Type: `String` Type: `String`
Default: `nested` 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