aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/build.mjs
blob: 488e30f26b09dc750bc4fd2bc077626c01f00644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import * as esbuild from "esbuild";

const result = await esbuild.build({
  entryPoints: process.argv,
  outdir: process.env.WRITE_TO
    ? process.env.WRITE_TO
    : "../../static/xeact",
  bundle: true,
  splitting: true,
  format: "esm",
  minifyWhitespace: !!process.env.MINIFY,
});