This adapter uses node-sass, an incredibly fast C binding to libsass. It is however limited in that it does not include ways to work with plugins and extensions that are as robust as the main ruby version, and that it only supports the scss syntax, and not sass.
- render
node-sass
(include its dependency libsass
) currently supports sourcemap. And you can use sourcemap
option to enable this feature.
- When passing
Boolean
value tosourcemap
, it means enable/disable the sourcemap. And thesources
property of generated sourcemap is array of absolute paths. - When passing
String
value tosourcemap
, thesources
property of generated sourcemap is array of relative paths (relative to the scss file).
See node-sass Options.sourceMap for more details.
It has a pretty standard API, and uses the options documented here. Do not pass through data
or file
, as this will be overridden by accord's wrapper - everything else is fair game.
If you do want to include plugins, you can start moving towards this type of functionality using the importPaths
option - by adding a folder to this path, you will make all its contents available for @import
s into your scss files. While not quite as robust as Stylus' options or sass-ruby's options, it will get the job done.
The scss adapter returns an array of files included via @import
. This array will be available as imports
on the response object.
Meta information about the build will be available as meta
on the response object.