zed/script/build-css
Max Brunsfeld a72bdac7df Fix paths to server crate in scripts and gitignore
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-03 19:22:00 -07:00

10 lines
267 B
Bash
Executable file

#!/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