A PostCSS plugin to parse styles with node-sass
Installation
npm install postcss-node-sass
Usage
After installation, you can process Sass via PostCSS like this
;
or using Gulp a typical gulpfile might look like:
let gulp = postcss = sass = ;gulp; /* rest of gulp file */
Options
The Node Sass options can be passed in to this plugin except for data
, file
, importer
, omitSourceMapUrl
, outFile
, sourceMap
, sourceMapContents
as these are handled by the plugin. Furthermore, by default the processor will use outputStyle:'expanded'
and indentWidth:4
.