Install htmx via bun instead of unpkg CDN

This commit is contained in:
2023-09-01 19:59:22 -04:00
parent e50e165b87
commit a8742c882e
3 changed files with 15 additions and 1 deletions

View File

@@ -1,4 +1,15 @@
import htmx from 'htmx.org';
import 'htmx.org/dist/ext/sse';
// import CSS so it gets named with a content hash that busts caches
import '../css/styles.css';
import './localTimeController';
declare global {
interface Window {
htmx: typeof htmx;
}
}
window.htmx = htmx;