- Changed:
preserve
option defaults astrue
to reflect the browser climate - Changed:
warnings
option defaults tofalse
to reflect the browser climate
- Reverted:
preserve
andwarnings
option to be added in major release
- Fixed:
var()
captures strictlyvar()
functions and notxvar()
, etc - Fixed:
var()
better captures whitespace within the function - Fixed: comments within declarations using
var()
are now preserved - Changed:
preserve
option defaults astrue
to reflect the browser climate - Changed:
warnings
option defaults tofalse
to reflect the browser climate - Updated documentation
- Added:
noValueNotifications
option (#71) - Fixed: Typo in
prefixedVariables
variable name (#77)
- Added: Let "warnings" option silence all warnings (#67)
- Dependencies update (postcss, balanced-match)
- Fixed: incorrect export (#69)
- Added: compatibility with postcss v6.x
- Minor dependency update (#57)
- Fixed: trailing space after custom property name causes duplicate empty property (#43)
- Removed: compatibility with postcss v4.x
- Added: compatibility with postcss v5.x
- Added:
warnings
option allows you to disable warnings. (cssnext#186)
- Added: plugin now returns itself in order to expose a
setVariables
function that allow you to programmatically change the variables. (#35)
- Changed: messages and exceptions are now sent using postcss message API.
- Added:
preserve
now support"computed"
so only preserve resolved custom properties (see new option below) - Added:
appendVariables
allows you (whenpreserve
is truthy) to append your variables as custom properties - Added:
strict: false
allows your to avoid too many fallbacks added in your CSS.
- Added: JS defined variables are now resolved too (#22)
- Added: variables defined in JS are now automatically prefixed with
--
(0691784)
- Fixed: logs now have filename back (#19)
- Fixed: issue when multiples undefined custom properties are referenced (#16)
- Added: enhanced exceptions & messages
- Changed: upgrade to postcss 3
- Fixed: more clear message for warning about custom prop used in non top-level :root
- Fixed: warning about custom prop used in non :root
- Added: warning when a custom prop is used in another place than :root
- Added: handle !important
- Added: JS-defined properties override CSS-defined
- Added: nested custom properties usages are now correctly resolved
- Changed: undefined var doesn't throw error anymore (just a console warning) & are kept as is in the output
- Changed: fallback now are always added by default (see why)
- Changed:
map
option renamed tovariables
- Added:
map
option - Changed: GNU style error message
✨ First release based on rework-vars v3.1.1