mirror of
https://github.com/enso-org/enso.git
synced 2025-01-03 23:22:15 +03:00
Fix build-dashboard
(#8292)
This commit is contained in:
parent
3046e152dc
commit
85a1bda213
@ -32,12 +32,12 @@ async function bundle() {
|
|||||||
})
|
})
|
||||||
opts.entryPoints.push(
|
opts.entryPoints.push(
|
||||||
path.resolve(THIS_PATH, 'src', 'index.html'),
|
path.resolve(THIS_PATH, 'src', 'index.html'),
|
||||||
path.resolve(THIS_PATH, 'src', '404.html'),
|
|
||||||
path.resolve(THIS_PATH, 'src', 'index.ts')
|
path.resolve(THIS_PATH, 'src', 'index.ts')
|
||||||
)
|
)
|
||||||
opts.metafile = ANALYZE
|
opts.metafile = ANALYZE
|
||||||
opts.loader['.html'] = 'copy'
|
opts.loader['.html'] = 'copy'
|
||||||
const result = await esbuild.build(opts)
|
const result = await esbuild.build(opts)
|
||||||
|
await fs.copyFile('build/index.html', 'build/404.html')
|
||||||
if (result.metafile) {
|
if (result.metafile) {
|
||||||
console.log(await esbuild.analyzeMetafile(result.metafile))
|
console.log(await esbuild.analyzeMetafile(result.metafile))
|
||||||
}
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
index.html
|
|
Loading…
Reference in New Issue
Block a user