From 56041a630ab0ec7d1487328f0478676c59f3e20f Mon Sep 17 00:00:00 2001 From: Cris Stringfellow <22254235+crislin2046@users.noreply.github.com> Date: Fri, 13 Jan 2023 19:15:07 +0800 Subject: [PATCH] Build minification and analysis works. I LOVE esbuild! --- scripts/build_only.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build_only.sh b/scripts/build_only.sh index f854d01..e205461 100755 --- a/scripts/build_only.sh +++ b/scripts/build_only.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash -./node_modules/.bin/esbuild src/app.js --bundle --outfile=dist/diskernet.mjs --format=esm --platform=node -./node_modules/.bin/esbuild src/app.js --bundle --outfile=build/out.cjs --platform=node +./node_modules/.bin/esbuild src/app.js --bundle --outfile=dist/diskernet.mjs --format=esm --platform=node --minify --analyze +./node_modules/.bin/esbuild src/app.js --bundle --outfile=build/out.cjs --platform=node --minify --analyze echo "#!/usr/bin/env node" > build/diskernet.js cat build/out.cjs >> build/diskernet.js chmod +x build/diskernet.js