Remote env ready
This commit is contained in:
24
dev.sh
Executable file
24
dev.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "========================================="
|
||||
echo " Starting DEVELOPMENT WATCH mode..."
|
||||
echo "========================================="
|
||||
echo "Press Ctrl+C to stop."
|
||||
echo ""
|
||||
|
||||
echo "[DEV] Starting Tailwind CSS watcher..."
|
||||
tailwindcss -i ./frontend/input.css -o ./web/static/css/output.css --watch &
|
||||
TAILWIND_PID=$!
|
||||
|
||||
echo "[DEV] Starting JavaScript watcher with Code Splitting..."
|
||||
esbuild ./frontend/js/main.js \
|
||||
--bundle \
|
||||
--outdir=./web/static/js \
|
||||
--splitting \
|
||||
--format=esm \
|
||||
--watch &
|
||||
ESBUILD_PID=$!
|
||||
|
||||
trap "kill $TAILWIND_PID $ESBUILD_PID 2>/dev/null" EXIT
|
||||
|
||||
wait
|
||||
Reference in New Issue
Block a user