trim tailwindcss

This commit is contained in:
Ruben Fiszel
2023-03-10 12:44:08 +01:00
parent 2809ef905b
commit a34e04dfab
+9 -8
View File
@@ -7,16 +7,17 @@ const config = {
'hljs',
'splitpanes__pane',
'splitpanes__splitter',
...(process.env.NODE_ENV === 'production'
? [
{ pattern: /^m(\w?)-/ },
{ pattern: /^p(\w?)-/ },
{ pattern: /^shadow-/ },
{ pattern: /^rounded-/ },
{ pattern: /^text-/, variants: ['hover', 'active', 'focus'] },
{ pattern: /^bg-/, variants: ['hover', 'active', 'focus'] },
{ pattern: /^border-/, variants: ['hover', 'active', 'focus'] },
{ pattern: /^ring-/, variants: ['hover', 'active', 'focus'] }
{ pattern: /^m(\w?)-.*$/ },
{ pattern: /^p(\w?)-.*$/ },
{ pattern: /^shadow-.*$/ },
{ pattern: /^rounded-.*$/ },
{ pattern: /^text-[^/]*$/, variants: ['hover', 'active', 'focus'] },
{ pattern: /^bg-[^/]*$/, variants: ['hover', 'active', 'focus'] },
{ pattern: /^border-[^/]*$/, variants: ['hover', 'active', 'focus'] },
{ pattern: /^ring-[^/]*$/, variants: ['hover', 'active', 'focus'] }
]
: [])
],