mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 12:22:50 +02:00
code quality: get htmx from npm
This commit is contained in:
parent
fbc1b6f419
commit
bb73341a89
4 changed files with 8 additions and 5262 deletions
|
@ -59,7 +59,7 @@ as.router.get("/static/htmx.js", defineEventHandler({
|
|||
handler: async event => {
|
||||
handleCacheHeaders(event, {maxAge: 86400})
|
||||
defaultContentType(event, "text/javascript")
|
||||
return fs.promises.readFile(join(__dirname, "static", "htmx.js"), "utf-8")
|
||||
return fs.promises.readFile(require.resolve("htmx.org/dist/htmx.js"), "utf-8")
|
||||
}
|
||||
}))
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue