Skip to content

Commit 7330e74

Browse files
build: minify prod build
closes #70
1 parent e60294b commit 7330e74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

esbuild.config.mjs

+2-1
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)