node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

gulp-rem2px

Version: 0.0.1

This is a Gulp plugin for rework-rem2px.

Installation

Run npm install gulp-rem2px

Usage

var rem2px = require('gulp-rem2px');
 
gulp.task('css', function() {
    gulp.src('css/**/*.css')
        .pipe(rem2px(16))
        .pipe(gulp.dest('css'));
});

Options

Pass in the base size as Number

var rem2px = require('gulp-rem2px');
 
var baseSize = 22;
 
 
gulp.task('css', function() {
    gulp.src('css/**/*.css')
        .pipe(rem2px(baseSize))
        .pipe(gulp.dest('css'));
});

This plugin is basically a clone of the inverse counterpart which is gulp-px2rem: gulp-px2rem by Gergely Kovács

License

MIT © 2015 Patrik Powalowski (patrik@powalowski.de)