gulp-pxtorem-plus

2.1.0 • Public • Published

gulp-pxtorem-plus NPM version

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'));
});

Package Sidebar

Install

npm i gulp-pxtorem-plus

Weekly Downloads

5

Version

2.1.0

License

MIT

Last publish

Collaborators

  • william.wei