3.1.4 • Published 10 months ago
postcss-node-sass v3.1.4
PostCSS Node Sass
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
postcss([require('postcss-node-sass')]).process(yourCSS);
or using Gulp a typical gulpfile might look like:
let gulp = require('gulp'),
postcss = require('gulp-postcss'),
sass = require('postcss-node-sass');
gulp.task('css', () => {
gulp.src('path/to/dev/css')
.pipe(postcss([
/* postcss plugins before parsing sass */
sass()
/* postcss plugins after parsing sass */
]))
.pipe(gulp.dest('path/to/build/css'));
});
/* 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
.
3.1.4
10 months ago
3.1.3
2 years ago
3.1.2
3 years ago
3.1.1
4 years ago
3.1.0
4 years ago
2.1.8
7 years ago
2.1.7
7 years ago
2.1.6
7 years ago
2.1.5
7 years ago
2.1.4
7 years ago
2.1.3
7 years ago
2.1.1
7 years ago
2.1.0
7 years ago
2.0.0
8 years ago
1.2.0
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.0
8 years ago