Build minification and analysis works. I LOVE esbuild!
This commit is contained in:
parent
81c3fae639
commit
56041a630a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue