trim tailwind safelist

This commit is contained in:
Ruben Fiszel
2023-03-10 01:06:55 +01:00
parent 43c45d930c
commit 4f2079f624
2 changed files with 9 additions and 3 deletions
@@ -68,6 +68,7 @@
function down(event: KeyboardEvent) {
if (!$focusedGrid) {
$selectedComponent = getSortedGridItemsOfChildren()[0]?.id
event.preventDefault()
} else if ($app.subgrids) {
const index = $focusedGrid?.subGridIndex ?? 0
const subgrid = $app.subgrids[`${$selectedComponent}-${index}`]
+8 -3
View File
@@ -9,9 +9,14 @@ const config = {
'splitpanes__splitter',
...(process.env.NODE_ENV === 'production'
? [
{
pattern: /.*/
}
{ 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'] }
]
: [])
],