personal_website/build.ts
2024-08-01 14:36:35 +02:00

27 lines
485 B
TypeScript

async function build() {
const minify = {
whitespace: true,
syntax: true,
identifiers: true,
}
const sa = await Bun.build({
entrypoints: ["./frontend/cash/cash", "./frontend/list/list"],
outdir: "./public/assets/build/",
minify,
})
console.log(sa);
const { stdout } = Bun.spawnSync({ cmd: ["bun", "build", "./app.ts", "--outfile=bundle.js", "--target=bun", "--minify"] });
console.log(stdout.toString());
}
build();
export default build;