From 7330e7499a6886f686ee7689d1b60534b1ccbbf4 Mon Sep 17 00:00:00 2001 From: Aleksey Rowan <79934725+aleksey-rowan@users.noreply.github.com> Date: Wed, 15 Nov 2023 14:10:43 -0500 Subject: [PATCH] build: minify prod build closes #70 --- esbuild.config.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index b13282b..a5de8b8 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -38,6 +38,7 @@ const context = await esbuild.context({ sourcemap: prod ? false : "inline", treeShaking: true, outfile: "main.js", + minify: prod, }); if (prod) { @@ -45,4 +46,4 @@ if (prod) { process.exit(0); } else { await context.watch(); -} \ No newline at end of file +}