purgecss icon indicating copy to clipboard operation
purgecss copied to clipboard

Add ability for custom extractors to extract CSS variables

Open garlandcrow opened this issue 4 years ago • 7 comments

I was trying to modify the purge-from-svelte extractor to identify css variables that are used in svelte components but seems that isn't supported in the older extractor return by just returning as a selector in the string[] return type, but maybe that could be added to this new type and then variables returned added to the internal list of which ones were used?

https://github.com/FullHuman/purgecss/blob/35a9ca35defd1bb7b93c63290911e04113d6f0de/packages/purgecss/src/types/index.ts#L21:18

garlandcrow avatar Apr 16 '20 07:04 garlandcrow

Yes, I think adding it to the new type makes sense

Ffloriel avatar Apr 29 '20 22:04 Ffloriel

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Mar 07 '22 00:03 github-actions[bot]

Nope

frederikhors avatar Mar 07 '22 08:03 frederikhors

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jun 06 '22 00:06 github-actions[bot]

Nope

frederikhors avatar Jun 06 '22 06:06 frederikhors

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Sep 05 '22 00:09 github-actions[bot]

Nope

frederikhors avatar Sep 05 '22 07:09 frederikhors

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Dec 05 '22 00:12 github-actions[bot]

Nope

frederikhors avatar Dec 05 '22 18:12 frederikhors

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Mar 07 '23 00:03 github-actions[bot]