django-vite-example
                                
                                
                                
                                    django-vite-example copied to clipboard
                            
                            
                            
                        An example Django project with Django Vite
Added more direction for ReadMe. Added WhiteNoise so one can demo a production environment (`Debug=False`)
Many thanks for this module - it's made working with Vite in Django much easier for me! I've converted your example app to a React Vite app, and I'm trying...
https://github.com/MrBin99/django-vite/issues/17 was closed because it was part of `vite.config.js` rather than the django plugin. However, the solution will be similar for any django project, so it seems worth adding it...
Running `npm run dev` outputs ``` vite v2.3.7 dev server running at: > Local: http://localhost:3000/static/ > Network: use `--host` to expose ready in 164ms. ``` But navigating to `http://localhost:3000/static/` is...
Not clear how or where you'd create custom components and how to reference them inside django templates. A default vite project comes with some additional directories and files: public src/assets...
P.S. It might be good to also make this work under docker-compose.