Skip to content

dentonzh/quart-tailwind-no-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a no-frills Quart project starter that allows you to use Tailwind without Node.

Clone this repository

By using git via command line: git clone https://github.com/dentonzh/quart-tailwind-no-node.git Or by downloading the zip

Download Tailwind's standalone CLI

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.

Set up virtualenv and install dependencies

Via command line: python3 -m venv path/to/new/virtual/environment Followed by this command: pip install -r requirements.txt

Run your project

Via command line: python3 run.py

Note that app/__init__.py contains code that runs the tailwindcss executable when running Quart in debug mode. Stopping your app will terminate the tailwindcss process started by it.

Minify output.css for production

To minify your output.css for production, run this command:

./tailwindcss -i app/static/css/input.css -o app/static/css/output.css --minify

About

Start a Python Quart project using Tailwind. No Node.js or npm required.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published