Skip to content

Commit daa0cba

Browse files
authored
Merge pull request #78 from aleksey-rowan/patch-1
Minify production build
2 parents bfa0145 + 7330e74 commit daa0cba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

esbuild.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ const context = await esbuild.context({
3838
sourcemap: prod ? false : "inline",
3939
treeShaking: true,
4040
outfile: "main.js",
41+
minify: prod,
4142
});
4243

4344
if (prod) {
4445
await context.rebuild();
4546
process.exit(0);
4647
} else {
4748
await context.watch();
48-
}
49+
}

0 commit comments

Comments
 (0)