node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

ydcss-rem2px

This is a gulp plugin for ydui's rem2px.

Installation

Run npm install ydcss-rem2px

Usage

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

Options

Pass in the base size as Number

var rem2px = require('ydcss-rem2px');
 
var baseSize = 100;
 
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-rem2px: gulp-rem2px by Patrik Powalowski

License

MIT © 2016 YDCSS Inc.