Fork me on GitHub
#re-frame
<
2022-06-14
>
wegi14:06:42

Is there something similar to PurgeCSS for reagent/hiccup style apps? Would be neat to scan a re-frame app and get unused styles / classes.

isak14:06:17

For our deployment we use PurgeCSS, but we just parse the emitted javascript from the re-frame app, looking at the string literals to expand the whitelist.

wegi14:06:33

Good point, that would be a viable option 👍

isak14:06:17

yea it is like 40 lines of code with esprima and esprima-walk

👍 1