MadLittleMods / postcss-css-variables

PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation
https://madlittlemods.github.io/postcss-css-variables/playground/
Other
536 stars 62 forks source link

Add an option 'preserveUndefinedVariables' to keeps undefined variables as is in final output #136

Open vithar opened 10 months ago

vithar commented 10 months ago

Currently postcss-css-variables generates undefined in case it process value with undefined variable.

In some cases this is undesirable behavior and undefined variables should be leaved as is without modification.

This PR adds an new option preserveUndefinedVariables in order to achieve this.