Skip to content

Commit 6be4168

Browse files
committed
fix: fix website build, move to esbuild
1 parent d10b109 commit 6be4168

9 files changed

Lines changed: 1150 additions & 32796 deletions

File tree

build-website.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {build} from "esbuild";
2+
import {polyfillNode} from "esbuild-plugin-polyfill-node";
3+
4+
await build({
5+
entryPoints: ["online/src/js/index.js"],
6+
bundle: true,
7+
minify: true,
8+
sourcemap: 'external',
9+
target: 'chrome60',
10+
outfile: "online/js/bundle.js",
11+
plugins: [
12+
polyfillNode({
13+
// Options (optional)
14+
}),
15+
],
16+
});

0 commit comments

Comments
 (0)