2.1.0 • Published 8 years ago

gulp-pxtorem-plus v2.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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