1.0.0 • Published 5 years ago
gulp-wx_px2rpx v1.0.0
gulp-wx_px2rpx
WeChat Mini Program px to rpx converter
Installation
$ npm install --save-dev gulp-px2rpx
Usage
const gulp = require('gulp');
const px2rpx = require('gulp-px2rpx');
gulp.task('default', function () {
gulp.src('./css/*.css')
.pipe(px2rpx({
screenWidth: 750, // Default screen width: 750
wxappScreenWidth: 750, // WeChat Mini Program screen width: 750
remPrecision: 6 // Fractional precision, default 6
}))
.pipe(gulp.dest('./wxappCss'))
});
1.0.0
5 years ago