fix tailwindcss sheet detection for production

This commit is contained in:
Rachel Powers
2024-04-21 00:40:31 -07:00
parent 55aa3cf4aa
commit ed6b12093e

View File

@@ -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)