ydui-rem2px
v1.0.1
Published
This is a gulp plugin for ydui's rem2px.
Downloads
10
Readme
This is a gulp plugin for ydui's rem2px.
Installation
Run npm install ydui-rem2px
Usage
var rem2px = require('ydui-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('ydui-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.