From ed6b12093e1241c8432ac019a1982c9bfbb34d6a Mon Sep 17 00:00:00 2001 From: Rachel Powers <508861+Ryex@users.noreply.github.com> Date: Sun, 21 Apr 2024 00:40:31 -0700 Subject: [PATCH] fix tailwindcss sheet detection for production --- www/src/ts/components/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/src/ts/components/base.ts b/www/src/ts/components/base.ts index eadd2ad..3f40530 100644 --- a/www/src/ts/components/base.ts +++ b/www/src/ts/components/base.ts @@ -2,7 +2,7 @@ import { CSSResultGroup, LitElement, css } from "lit"; import shoelaceDark from "@shoelace-style/shoelace/dist/themes/dark.styles.js"; const { cssRules } = Array.from(document.styleSheets).find( - (sheet) => sheet.href && sheet.href.endsWith("index.css"), + (sheet) => sheet.href && /index\.([\w\d]+\.)?css/.test(sheet.href), ); const globalStyle = css([ Object.values(cssRules)