Skip to content

cuth/gulp-pxtorem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-pxtorem NPM version

This is a Gulp plugin for postcss-pxtorem.

Installation

npm install gulp-pxtorem --save-dev

Example

var pxtorem = require('gulp-pxtorem');

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 options, the second for postcss options.

var pxtorem = require('gulp-pxtorem');

var pxtoremOptions = {
    replace: false
};

var postcssOptions = {
    map: true  
};

gulp.task('css', function() {
    gulp.src('css/**/*.css')
        .pipe(pxtorem(pxtoremOptions, postcssOptions))
        .pipe(gulp.dest('css'));
});

About

A Gulp plugin for pxtorem

Resources

License

Stars

Watchers

Forks

Packages

No packages published