labcodes / django-react-boilerplate

Boilerplate for a Django + React project
41 stars 6 forks source link

Proposal: vite migration #60

Closed lucianoratamero closed 2 years ago

lucianoratamero commented 2 years ago

This PR implements a proposal to change from webpack to vite. We'll need to change the repo's name, though, since we won't be using webpack anymore. The proposal changes from django-react-webpack to django-react-boilerplate.

(This PR is based on two open PRs, #57 and #58 , so be sure to merge those before)

Link to task: fix #59

How to test:

Description of your solution: I've removed django-webpack-loader, together with webpack configs, and refactored the frontend app and dependencies to build using vite. All the details are described on my Using Vite with Django, the simple way gist, and this will need thorough code review, but it seems pretty straightforward.