Fix header rewriting

Fix header rewriting, revamp html rewriting, add types to bare-mux from bare-client, prefetch scramjet scripts for faster load
This commit is contained in:
Avad3 2024-05-07 00:29:30 -04:00
parent 8a68a17e7a
commit 23fd5a7b83
7 changed files with 75 additions and 125 deletions

View file

@ -14,24 +14,24 @@ const devServer = createServer({
outdir: "./dist",
bundle: true,
sourcemap: true,
logLevel: 'info',
logLevel: "info",
plugins: [
copy({
resolveFrom: "cwd",
assets: [
{
from: ['./node_modules/@mercuryworkshop/bare-mux/dist/bare.cjs'],
to: ['./static/bare-mux.js'],
from: ["./node_modules/@mercuryworkshop/bare-mux/dist/bare.cjs"],
to: ["./static/bare-mux.js"],
},
{
from: ['./node_modules/@mercuryworkshop/bare-as-module3/dist/bare.cjs'],
to: ['./static/bare-client.js'],
from: ["./node_modules/@mercuryworkshop/bare-as-module3/dist/bare.cjs"],
to: ["./static/bare-client.js"],
},
{
from: ["./dist/*"],
to: ["./static"]
},
],
],
}),
time()
]