18 lines
337 B
Bash
Executable File
18 lines
337 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo ">> Building client bundle"
|
|
|
|
# Clean pub directory
|
|
rm -rf pub/client
|
|
mkdir -p pub/client
|
|
|
|
# Bundle client code
|
|
bun build src/client/index.tsx \
|
|
--outfile pub/client/index.js \
|
|
--target browser \
|
|
--minify
|
|
|
|
echo ">> Client bundle created at pub/client/index.js"
|
|
ls -lh pub/client/index.js
|