rails / tailwindcss-rails

Other
1.37k stars 165 forks source link

"rebuild" speed is extremely slow when using safelist #371

Closed thisIsLoading closed 1 month ago

thisIsLoading commented 1 month ago

i need to set a lot of classes programmatically so i probably dont have any other options than using the safelist (or do i?).

so i set mine to:

safelist: [
    {
        pattern: /^(bg-|border-|text-|ring-)/,
        variants: ['hover', 'active', 'focus', 'dark'],
    },
],

i expected some kind of a slow down when rebuilding but right now i am waiting 34 minutes (and counting) for it to finish the rebuild.

i havent the newest machine but it is still decent:

CPU: 12-core AMD Ryzen 9 3900X (-MT MCP-) speed/min/max: 3124/2200/4672 MHz
Kernel: 6.9.2-1-MANJARO x86_64 Up: 13h 30m Mem: 30.38/62.74 GiB (48.4%)
Storage: 2.75 TiB (35.1% used) Procs: 647 Shell: Bash inxi: 3.3.34

is this expected? do i do it wrong?

thanks