xianyutest
v2.3.2
Published
var gulp = require('gulp'); var px222rem = require('gulp-px222rem-plugin');
Downloads
1
Readme
var gulp = require('gulp'); var px222rem = require('gulp-px222rem-plugin');
gulp.task('default', function() { gulp.src('*.css') .pipe(px222rem()) // .pipe(px222rem({valid_num':6,ignore_px':[1,2],'ignore_selector':['.class1']}));
});
valid_num:生成rem后的小数位数。默认值4 ignore_px:让部分px不在转换成rem。默认为空数组 ignore_selector:让部分选择器不在转换为rem。默认为空数组 安装方法: npm install gulp-px222rem-plugin --save-dev