Changelog
April 28, 2020 ยท View on GitHub
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased 1.2.0] - 2020-xx-xx
You can install edge-version over
npm i -D evrone/postcss-px-to-viewport or yarn add -D evrone/postcss-px-to-viewport.
Added
- #50 by @IceApriler:
include(Regexp or Array of Regexp) Ifincludeis set, only matching files will be converted, for example, only files undersrc/mobile/(include: /\/src\/mobile\//)excludeandincludecan be set together, and the intersection of the two rules will be taken. - Added
/* px-to-viewport-ignore */and/* px-to-viewport-ignore-next */โ special comments for ignore conversion of single lines, inspired by #27 from @lcat Read more about ignoring.
Changed
- Changed testing lib to Jest from jasmine-node.
package-lock.jsonincluded to git-repo.
[1.1.1] - 2019-07-08
Fixed
- Fixed
rule.source === undefinedfrompostcss-modules-values.
[1.1.0] - 2019-02-05
Added
landscape(Boolean) Adds@media (orientation: landscape)with values converted vialandscapeWidth.landscapeUnit(String) Expected unit forlandscapeoptionlandscapeWidth(Number) Viewport width for landscape orientation.
Fixed
mediaQueryoption iftruedoes not mutate its value now, but the rule inside it instead.
[1.0.0] - 2019-01-28
Added
replaceoption - (Boolean) replaces rules containingvwinstead of adding fallbacks.propListoption - (Array) The properties that can change frompxtovw.excludeoption - (Array or Regexp) Ignore some files likenode_modules.
Changed
- zero values now remain unitless.
- replace regexp is now case sensitive, so if you want to change
px, thenpXvalues won't be changed.