# django-vite-plugin: A minimalist Vite helper for Django

**URL:** <https://forum.djangoproject.com/t/django-vite-plugin-a-minimalist-vite-helper-for-django/19842>\
**Category:** Show & Tell\
**Created:** [March 28, 2023, 9:07am UTC](https://forum.djangoproject.com/t/django-vite-plugin-a-minimalist-vite-helper-for-django/19842 "2023-03-28T09:07:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![protibimbok](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/protibimbok/32/12936_2.png) [@protibimbok](https://forum.djangoproject.com/u/protibimbok)\
**Post date:** [March 28, 2023, 9:07am UTC](https://forum.djangoproject.com/t/django-vite-plugin-a-minimalist-vite-helper-for-django/19842/1 "2023-03-28T09:07:53Z")

</div>

Alhamdulillah! I’ve just published a new Python package and Vite plugin that will help developers use Vite with Django with zero configuration! 🚀

With this package and plugin, you can easily take advantage of Vite’s lightning-fast development server and modern build system while building Django applications. This can help speed up the development process and improve overall performance.

[django-vite-plugin](https://github.com/protibimbok/django-vite-plugin)

I hope you find this package and plugin as useful as I do. Let me know if you have any questions or feedback! 😀

---

<div class="post-metadata">

**Author:** ![baseplate-admin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/baseplate-admin/32/10889_2.png) [@baseplate-admin](https://forum.djangoproject.com/u/baseplate-admin)\
**Post date:** [March 30, 2023, 10:51pm UTC](https://forum.djangoproject.com/t/django-vite-plugin-a-minimalist-vite-helper-for-django/19842/3 "2023-03-30T22:51:11Z")

</div>

Hi there,

Congratulations for this awesome package. But i have to ask this. How does it differ from already established packages like [django-vite](https://github.com/mrbin99/django-vite)

---

<div class="post-metadata">

**Author:** ![protibimbok](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/protibimbok/32/12936_2.png) [@protibimbok](https://forum.djangoproject.com/u/protibimbok)\
**Post date:** [March 31, 2023, 5:45am UTC](https://forum.djangoproject.com/t/django-vite-plugin-a-minimalist-vite-helper-for-django/19842/4 "2023-03-31T05:45:07Z")

</div>

The main way it differs is the [django-vite-plugin](https://www.npmjs.com/package/django-vite-plugin) npm package and the connection between the django & vite. See how easily you can set up a project without any configuration at all. But in case of _ **django-vite** _ you have to configure a lot of things and in both front end and backend which is not good for dx. I could not document all of the features yet because of lack of time. Here’s an example:

```javascript
// app1/static/script1.js
export const hello = () => console.log("Hello everyone!");

```

And you can import it from another app like:

```javascript
// app2/static/script.js
import { hello } from '@/app1/static/script1.js'
hello();

```

And there are other features coming that is not possible with the `django-vite` package because of the way it is implemented.  
For the same example, more developer friendly & compact code would be

```javascript
// app2/static/script.js
// Not implemented yet
import { hello } from '@app1/script1.js'
hello();

```

These are the things you use a lot while developing large applications.  
Inshallah after I complete these features and document them properly, it should be pretty self-explanatory.  
Thank you for your interest.

---

<div class="post-metadata">

**Author:** ![Louxsdon](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/louxsdon/32/13415_2.png) [@Louxsdon](https://forum.djangoproject.com/u/Louxsdon)\
**Post date:** [April 24, 2023, 5:50pm UTC](https://forum.djangoproject.com/t/django-vite-plugin-a-minimalist-vite-helper-for-django/19842/5 "2023-04-24T17:50:02Z")

</div>

You can as well use [Django Breeze](https://github.com/Louxsdon/django-breeze) which makes setting up django projects with vite a breeze.
