Replies: 2 comments 1 reply
-
Hey! That's odd - if the classes are present in the PHP files, these classes should not be purged! PS: you have a double purge: [
- './app/Components/**/*..php',
+ './app/Components/**/*.php',
], |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yeah I'm dumb. Thank you. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to figure out how to implement a custom regex pattern for purging my tailwind project. The issue is that I am not using HTML elements at all, rather, I have created a PHP framework package that uses PHP functions to build HTML.
Here is an example of the PHP code I need purging:
Here is my current tailwind config file:
As you can see, I've set the
purge
path to my components folder, which contains all of my PHP classes.The problem is tailwing is purging EVERYTHING. I can't figure out how to add a custom regex pattern so it will not purge items inside of the
->class()
methods.How would I implement a purge regex pattern so I don't lose the classes used within these
->class()
methods?Beta Was this translation helpful? Give feedback.
All reactions