diff --git a/projects/build-styles.sh b/projects/build-styles.sh new file mode 100755 index 0000000..1c17dc3 --- /dev/null +++ b/projects/build-styles.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env sh +# Regenerates each sample's precompiled styles.css so the pages render offline. +# Run after editing a sample's index.html or tailwind.config.js. +set -e +cd "$(dirname "$0")" +for dir in */; do + [ -f "$dir/tailwind.config.js" ] || continue + # Pinned to Tailwind v3, the version the original Play CDN builds used. + (cd "$dir" && npx --yes tailwindcss@3.4.19 -c tailwind.config.js -o styles.css --minify) +done diff --git a/projects/healthcare-dashboard/index.html b/projects/healthcare-dashboard/index.html index d5733fb..9303415 100644 --- a/projects/healthcare-dashboard/index.html +++ b/projects/healthcare-dashboard/index.html @@ -4,34 +4,11 @@