Extract all used css classes (as far as possible) via AST/parser for tailwind's purgecss #935
Unanswered
emilebosch
asked this question in
Q&A
Replies: 1 comment
-
I use Slim with Roda framework (similar to Sinatra) and the standard purge settings for TailwindCSS 2.0 work just fine in terms of extracting used classes inside my Slim views. Below you will find settings inside my The module.exports = {
mode: 'jit',
purge: [
'./app/**/*.{js,rb,slim,erb,html}',
],
darkMode: false, // or 'media' or 'class'
plugins: [],
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Heya! Would love to find some way to extract all the CSS classes for tailwind from the SLIM files. Tailwind uses this to purgecss the tailwind css file. Any ideas how one might achieve this?
I was thinking about using the parser and then applying some magic? Any ideas/pointers on how together all the css classes form slim files would be appreciated <3
Beta Was this translation helpful? Give feedback.
All reactions