Commit 02eee94a by xzyfer

Update custom importer documentation to advocate returning `null`

With #1291 custom importers can now return `null` instead of
`sass.NULL`. This means custom importer modules no longer need to
have node-sass as a dependency.
parent 71f9428d
...@@ -104,7 +104,7 @@ Starting from v3.0.0: ...@@ -104,7 +104,7 @@ Starting from v3.0.0:
return new Error('nothing to do here'); return new Error('nothing to do here');
``` ```
* importer can be an array of functions, which will be called by LibSass in the order of their occurrence in array. This helps user specify special importer for particular kind of path (filesystem, http). If an importer does not want to handle a particular path, it should return `sass.NULL`. See [functions section](#functions--v300) for more details on Sass types. * importer can be an array of functions, which will be called by LibSass in the order of their occurrence in array. This helps user specify special importer for particular kind of path (filesystem, http). If an importer does not want to handle a particular path, it should return `null`. See [functions section](#functions--v300) for more details on Sass types.
### functions (>= v3.0.0) - _experimental_ ### functions (>= v3.0.0) - _experimental_
......
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