mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
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:
parent
8a68a17e7a
commit
23fd5a7b83
7 changed files with 75 additions and 125 deletions
|
@ -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()
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue