Skip to content

Commit

Permalink
build: minify prod build
Browse files Browse the repository at this point in the history
closes #70
  • Loading branch information
aleksey-rowan authored Nov 15, 2023
1 parent e60294b commit 7330e74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ const context = await esbuild.context({
sourcemap: prod ? false : "inline",
treeShaking: true,
outfile: "main.js",
minify: prod,
});

if (prod) {
await context.rebuild();
process.exit(0);
} else {
await context.watch();
}
}

0 comments on commit 7330e74

Please sign in to comment.