GoogleChromeLabs / postcss-jit-props

A CSS custom property helper based on PostCSS. Supply a pool of variables and this plugin will add them to the stylesheet as they are used.
https://stackblitz.com/edit/jit-open-props?file=postcss.config.js
Apache License 2.0
219 stars 9 forks source link

enhancement: spread props coming from plugin options #38

Closed mod3x closed 1 year ago

mod3x commented 1 year ago

Hello, This pull request introduces a functionality to create copies of props coming from plugin options using the rest and spread operators instead of JSON stringify and parse. This is because postcss-jit-props targets node version >= 10, which supports it. Thank you!