Skip to content

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

Closed Answered by thisIsLoading
thisIsLoading asked this question in Q&A
Discussion options

You must be logged in to vote

@flavorjones yeah, i figured it may be the wrong place, unfortunately only after i posted (sorry)

with that said, i just discovered that you have to be super specific when it comes to the safelist or it just is unusable. so, for anyone finding this via google, i had to set my safelist specifically to colors, like

    safelist: [
        {
            pattern:
                /^(bg-(?:slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(?:50|100|200|300|400|500|600|700|800|900|950))$/,
            variants: ['hover', 'active', 'focus', 'dark', 'dark:hover'],
        },
        {
            pattern:
           …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by thisIsLoading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #371 on June 04, 2024 19:27.