README
postcss-dpr-px
PostCSS plugin to replace value in px with new value for device pixel ratio.
.foo {
width: 24px;
}
For device pixel ratio 1.5:
.foo {
width: 16px;
}
Usage
postcss([ require( "postcss-dpr-px" ) ])
Options
(default: 1) dpr
(default: "round") rounding
(default: true) permitZero
See PostCSS docs for examples for your environment.