I am trying to use a Tailwindcss RTL plugin, which generates some classes starting with [dir=rtl] or [dir=ltr]. But due to Purge CSS is removing it regardless of it's use.
            Asked
            
        
        
            Active
            
        
            Viewed 1,254 times
        
    3
            
            
         
    
    
        Sidharth Rathi
        
- 122
- 7
- 
                    Check out https://stackoverflow.com/a/66275291/452587 – thdoan May 10 '23 at 08:39
1 Answers
1
            Here is how I solved this Because pure CSS is dumb, it looks for the strings that match the content it needs to purge. So to fool it, we can simply add the classes or attributes which we want to be saved.
like this
<main class="[dir=rtl] [dir=ltr] container">
{some content}
</main> 
 
    
    
        Sidharth Rathi
        
- 122
- 7