1
0

setup-tailwind.sh 826 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. echo "Setting up Tailwind CSS for production..."
  3. # Check if Node.js is installed
  4. if ! command -v node &> /dev/null; then
  5. echo "Node.js is not installed. Please install Node.js first:"
  6. echo "https://nodejs.org/"
  7. exit 1
  8. fi
  9. # Install dependencies
  10. echo "Installing Tailwind CSS and plugins..."
  11. npm install
  12. # Build the CSS file
  13. echo "Building production CSS..."
  14. npm run build-css
  15. echo "✅ Tailwind CSS setup complete!"
  16. echo ""
  17. echo "📝 Next steps:"
  18. echo "1. Remove the inline styles from templates/base.html (lines 28-177)"
  19. echo "2. Make sure /static/css/tailwind.css is being served by your Flask app"
  20. echo "3. For development, run: npm run dev (to watch for changes)"
  21. echo "4. For production builds, run: npm run build-css"
  22. echo ""
  23. echo "🚀 Your app is now using production-ready Tailwind CSS!"