@@ -16,6 +16,39 @@ Modern, minimal-JavaScript approach with server-rendered HTML.
1616- ** Tailwind CSS** for styling
1717- ** Alpine.js** for lightweight JavaScript
1818
19+ #### Asset Bundling Options
20+
21+ When you select HTMX + Tailwind, you can choose how assets are delivered:
22+
23+ | Option | Best For | Build Step | External Dependencies |
24+ | --------| ----------| ------------| ----------------------|
25+ | ** Vite** (default) | Production apps | Yes | None |
26+ | ** CDN** | Prototypes, MVPs | No | Yes (3 CDNs) |
27+
28+ ** Vite (Recommended for Production)**
29+
30+ - Bundles Tailwind CSS, HTMX, and Alpine.js locally
31+ - No external CDN dependencies in production
32+ - Proper CSS purging for smaller bundles
33+ - Hot Module Replacement (HMR) in development
34+ - Uses ` django-vite ` for seamless Django integration
35+
36+ Development:
37+ ``` bash
38+ docker-compose up # Starts Django + Vite dev server
39+ ```
40+
41+ Production:
42+ - Assets are built during Docker image build
43+ - Served via WhiteNoise from ` /static/dist/ `
44+
45+ ** CDN (Simple, No Build Step)**
46+
47+ - Assets loaded from external CDNs (tailwindcss, unpkg, jsdelivr)
48+ - Zero configuration needed
49+ - Good for quick prototypes
50+ - Not recommended for production (external dependencies)
51+
1952### Next.js
2053
2154Full-featured React framework for building modern web applications.
0 commit comments