Replace rem units with px
var remtopx = require("rem-to-px");
console.log(remtopx("div { width:2rem }"));
// -> "div { width:32px }"
Replace rem units found in the css string with px.
options.size
: The size of 1 rem in px (default:16
)
npm install rem-to-px