Skip to content

Commit

Permalink
fix tailwindcss sheet detection for production
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryex committed Apr 21, 2024
1 parent 55aa3cf commit ed6b120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/src/ts/components/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed6b120

Please sign in to comment.