Skip to content

Commit

Permalink
Merge pull request #78 from aleksey-rowan/patch-1
Browse files Browse the repository at this point in the history
Minify production build
  • Loading branch information
kepano authored Aug 21, 2024
2 parents bfa0145 + 7330e74 commit daa0cba
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 daa0cba

Please sign in to comment.