1
Fork 0
solar-conflux/typescript/wave38/build.js

13 lines
258 B
JavaScript
Raw Permalink Normal View History

2023-10-29 02:26:18 +02:00
const esbuild = require("esbuild");
const production = process.env.NODE_ENV === "production";
esbuild
.build({
bundle: true,
entryPoints: ["src/index.ts"],
watch: !production,
outdir: "public/dist",
})
.catch((e) => process.exit(0));