@tianz/postcss-px-to-viewport
Advanced tools
Changelog
[1.1.0] - 2019-02-05
landscape
(Boolean) Adds @media (min-aspect-ratio: 13/9) and (orientation: landscape)
with values converted via landscapeWidth
.landscapeUnit
(String) Expected unit for landscape
optionlandscapeWidth
(Number) Viewport width for landscape orientation.mediaQuery
option if true
does not mutate its value now, but the rule inside it instead.Changelog
[1.0.0] - 2019-01-28
replace
option - (Boolean) replaces rules containing vw
instead of adding fallbacks.propList
option - (Array) The properties that can change from px
to vw
.exclude
option - (Array or Regexp) Ignore some files like node_modules
.px
, then pX
values won't be changed.