cuth / postcss-pxtorem

Convert pixel units to rem (root em) units using PostCSS
MIT License
2.03k stars 174 forks source link

Update index.js to add space after property to rem if px is not replaced. #43

Closed jdelia closed 6 years ago

jdelia commented 6 years ago

When the option replace: false is used - there is a space missing after the colon.

font-size: 18px; font-size:1.8rem;

Added a parameter to the function createPxReplace to test for and add a space if replace is false.

jdelia commented 6 years ago

See notes in https://github.com/cuth/postcss-pxtorem/issues/42