django_vite for production

I came across this article and am looking for a solution on how to build it using django_vite.

My searched ended at GitHub - MrBin99/django-vite: Integration of ViteJS in a Django project. but couldn’t get it to work.

Is there a one-stop tutorial on how do go about building vite for production (with React) ?

It’s not an in depth tutorial, but I have a template that uses it. Pretty sure it’s still using the old config style (on my phone atm, so it’s a bit hard to lookup).

Hopefully it can be of some use.

https://github.com/westerveltco/django-twc-project/tree/main/examples/with_vite

1 Like

Is this better ? GitHub - Louxsdon/django-breeze: Django Breeze provides a minimal and simple starting point for building a Django application with Inertia and Vite with minimal or no configuration. Styled with Tailwind CSS.