According to one stylesheet, generate rem version and @1x, @2x and @3x stylesheet
npm install px2rem-dpr
{
baseDpr: 2, // base device pixel ratio (default: 2)
remUnit: 75, // rem unit value (default: 75)
remPrecision: 6, // rem value precision (default: 6)
forcePxComment: 'px', // force px comment (default: px)
keepComment: 'no', // no transform value comment (default: no)
shouldUseDprRule: function(rule){
var list = ['font', 'font-size'];
return list.some(function(item) {
return item === rule.property;
})
},
shouldIgnoreRule: function(rule) {
return /border/.test(rule.property);
}
}
``