Fix: Ensure Lucide icons render

This commit is contained in:
2026-02-26 14:11:30 -08:00
parent bcf99d6450
commit fdc3a1ad83

View File

@@ -1,8 +1,14 @@
import Alpine from "alpinejs";
import { createIcons } from "lucide";
import { createIcons, icons } from "lucide";
import "./styles.css";
window.Alpine = Alpine;
Alpine.start();
document.addEventListener("DOMContentLoaded", () => createIcons());
const bootIcons = () => createIcons({ icons });
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", bootIcons);
} else {
bootIcons();
}