Build minification and analysis works. I LOVE esbuild!

This commit is contained in:
Cris Stringfellow 2023-01-13 19:15:07 +08:00
parent 81c3fae639
commit 56041a630a
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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