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
210 stars 9 forks source link

Feature request: Support file-globbing #17

Closed benbender closed 2 years ago

benbender commented 2 years ago

It would be really nice, if the plugin would support glob-path like { files: ["./src/styles/props/*.css"] } for input. That, btw, would align with vscode's cssvars-plugin.

benbender commented 2 years ago

Proposal:

That's what I'm doing manually in my postcss.conf and it works fine.