Purge gradients with vue #3087
                  
                    
                      jenstornell
                    
                  
                
                  started this conversation in
                Show and tell
              
            Replies: 0 comments
  
    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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a tool where I generate gradients dynamically in Vue. It's not recommended to generate Tailwind classes and then merge them because PurgeCSS will miss them.
It's however very simple to solve in purge. Four small regex is all that is needed.
tailwind.config.js
I hope it may help someone.
Beta Was this translation helpful? Give feedback.
All reactions