Patrick Altman: Using Vite with Vue and Django
wedgworth.dev·9h·
Discuss: Hacker News
Flag this post

I’ve been building web applications with Vue and Django for a long time. I don’t remember my first one—certainly before Vite was available. As soon as I switched to using Vite, I ended up building a template tag to join the frontend and backend together rather than having separate projects. I’ve always found things simpler to have Django serve everything.

While preparing this post to share the latest version of what is essentially a small set of files we copy between projects, I started exploring the idea of open-sourcing the solution.

The goal was twofold

  1. To create a reusable package instead of relying on copy-and-paste code, and
  2. To contribute so…

Similar Posts

Loading similar posts...