Fix purgecss being too eager for Tailwind
https://stackoverflow.com/questions/65554596/purgecss-and-tailwind-css-how-to-preserve-responsive-classes-using-the-command
This commit is contained in:
parent
52eaecd497
commit
d74a67913f
|
|
@ -30,7 +30,10 @@ export const config: Config = {
|
|||
plugins: [
|
||||
tailwindcss(),
|
||||
autoprefixer(),
|
||||
...(dev ? [] : [purgecss({content: ['./**/*.tsx', './**/*.ts']})])
|
||||
...(dev ? [] : [purgecss({
|
||||
content: ['./**/*.tsx', './**/*.ts'],
|
||||
defaultExtractor: (content) => content.match(/[\w-/:.]+(?<!:)/g) || [],
|
||||
})])
|
||||
]
|
||||
})
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue