Install htmx via bun instead of unpkg CDN
This commit is contained in:
parent
e50e165b87
commit
a8742c882e
Binary file not shown.
@ -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;
|
||||
|
@ -18,5 +18,8 @@
|
||||
"peerDependencies": {
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"type": "module"
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"htmx.org": "^1.9.5"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user