This is a no-frills Flask project starter that allows you to use Tailwind without Node.
By using git via command line: git clone https://github.com/dentonzh/flask-tailwind-no-node.git
Or by downloading the zip
Select the correct executable from the list of exectuables (under "Assets") based on your OS and architecture.
Rename this executable to tailwindcss.
If on Linux or Mac, run chmod +x tailwindcss to make tailwindcss executable.
Via command line: python -m venv path/to/new/virtual/environment
Followed by this command: pip install -r requirements.txt
Via command line: flask run --debug
Note that app/__init__.py contains code that runs the tailwindcss executable. When you make changes to any of the templates in app/templates, tailwindcss will automatically compile a new output.css file.
To minify your output.css for production, run this command:
./tailwindcss -i app/static/css/input.css -o app/static/css/output.css --minify