gulp-pxtorem-plus
v2.1.0
Published
A gulp plugin for postcss-pxtorem-plus
Downloads
20
Maintainers
Readme
gulp-pxtorem-plus
This is a Gulp plugin for postcss-pxtorem-plus.
Installation
npm install gulp-pxtorem-plus --save-dev
Example
var pxtorem = require('gulp-pxtorem-plus');
gulp.task('css', function() {
gulp.src('css/**/*.css')
.pipe(pxtorem())
.pipe(gulp.dest('css'));
});
Options
Pass in two option objects. The first one for postcss-pxtorem-plus options, the second for postcss options.
var pxtorem = require('gulp-pxtorem-plus');
var pxtoremOptions = {
replace: false
};
var postcssOptions = {
map: true
};
gulp.task('css', function() {
gulp.src('css/**/*.css')
.pipe(pxtorem(pxtoremOptions, postcssOptions))
.pipe(gulp.dest('css'));
});