zed/script/build-css

11 lines
267 B
Text
Raw Normal View History

#!/bin/bash
set -e
cd ./script
[ -d node_modules ] || npm install
if [[ $1 == --release ]]; then
export NODE_ENV=production # Purge unused styles in --release mode
fi
npx tailwindcss build ../crates/server/styles.css --output ../crates/server/static/styles.css