ydcss-rem2px
v1.0.0
Published
A gulp plugin for rem2px!
Downloads
3
Readme
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.