Install htmx via bun instead of unpkg CDN

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

Binary file not shown.

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;

View File

@ -18,5 +18,8 @@
"peerDependencies": {
"typescript": "^5.0.0"
},
"type": "module"
"type": "module",
"dependencies": {
"htmx.org": "^1.9.5"
}
}