Django-vite-plugin

Latest version: v4.1.0

Safety actively analyzes 722460 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

4.1.0

Changes
* FIX: copy info.html file while building
* FIX: Serving static assets in dev server
* FIX: Not merging plugin's input with vite config's input
* IMPROVE: Get django version in config command
* IMPROVE: Re-organized the codebase

**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v4.0.5...v4.1.0

4.0.5

What's Changed
* Added support for Vite 6 by BonaFideIT in https://github.com/protibimbok/django-vite-plugin/pull/76
* Added support for React hmr
* Fixed adding aliases when `tsconfig.app.json` is present
*

New Contributors
* BonaFideIT made their first contribution in https://github.com/protibimbok/django-vite-plugin/pull/76


v4.0.4-npm
What's Changed
* FIX: __dirname not defined by protibimbok in https://github.com/protibimbok/django-vite-plugin/pull/70


**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v4.0.3-npm...v4.0.4-npm

v4.0.3-npm
What's Changed
* `__dirname` fix by protibimbok in https://github.com/protibimbok/django-vite-plugin/pull/69


**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v4.0.2-npm...v4.0.3-npm

v4.0.2-npm
What's Changed
* Allow to have a separate ESM compatible build by cpontvieux-systra in https://github.com/protibimbok/django-vite-plugin/pull/62

New Contributors
* cpontvieux-systra made their first contribution in https://github.com/protibimbok/django-vite-plugin/pull/62

**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v4.0.1-npm...v4.0.2-npm

v3.0.4-py
What's Changed
* When manifest file does not exist, just write a message in stderr and continue

**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v3.0.3-py...v3.0.4-py

v3.0.3-py
What's Changed
* Replace apps loading by qloridant in https://github.com/protibimbok/django-vite-plugin/pull/61

New Contributors
* qloridant made their first contribution in https://github.com/protibimbok/django-vite-plugin/pull/61

**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v3.0.2-py...v3.0.3-py

v3.0.2-py
What's Changed
* Fix: build fails when ran for the first time and without dev mode by protibimbok in https://github.com/protibimbok/django-vite-plugin/pull/59


**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v3.0.1-py...v3.0.2-py

v3.0.1-py
What's Changed
* fix recursive imports from manifest by Supermanu in https://github.com/protibimbok/django-vite-plugin/pull/57
* fix: css files not loading properly because of caching by protibimbok in https://github.com/protibimbok/django-vite-plugin/pull/58

New Contributors
* Supermanu made their first contribution in https://github.com/protibimbok/django-vite-plugin/pull/57

**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v3.0.0-py...v3.0.1-py

v4.0.1-npm
What's Changed
* Use tsconfig for ts autocompletions by protibimbok in https://github.com/protibimbok/django-vite-plugin/pull/54


**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v3.0.0-py...v4.0.1-npm

v4.0.0-npm
What's Changed
* Vite server detection by protibimbok in https://github.com/protibimbok/django-vite-plugin/pull/48
* Fix vite5 & rollup typescript error by protibimbok in https://github.com/protibimbok/django-vite-plugin/pull/49


**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v2.0.0-py...v4.0.0-npm

v3.0.0-py
What's Changed
* Vite server detection by protibimbok in https://github.com/protibimbok/django-vite-plugin/pull/48


**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v2.0.0-py...v3.0.0-py

v3.0.0-npm
What's Changed
* Added support for vite v5 by protibimbok in https://github.com/protibimbok/django-vite-plugin/pull/45


**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v1.3.4-py...v3.0.0-npm

v2.0.0-py
What's Changed
* Add support for vite v5 by protibimbok in https://github.com/protibimbok/django-vite-plugin/pull/45

Upgrade guide
If you are using vite 4 then add an option in the `DJANGO_VITE_PLUGIN` section of `settings.py`:
py
DJANGO_VITE_PLUGIN = {
...
MANIFEST: '<YOUR_BUILD_PATH>/manifest.json',
...
}



**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v1.3.4-py...v2.0.0-py

v1.3.4-py
What's Changed
* BUILD_DIR needs to be converted to str for all Path-kind by encetamasb in https://github.com/protibimbok/django-vite-plugin/pull/42

New Contributors
* encetamasb made their first contribution in https://github.com/protibimbok/django-vite-plugin/pull/42

**Full Changelog**: https://github.com/protibimbok/django-vite-plugin/compare/v2.0.4-npm...v1.3.4-py

v2.0.4-npm
Changelog
Fix 40
Crashing of vite if there were any warnings in the Django (write to stderr).

v2.0.3-npm
CHANGELOG
1. Strictly follow the dev server configuration of the `settings.py`
2. Set dev server origin from Django `settings.py`

v1.3.3-py
BUGFIX
By default the value of BUILD_DIR is assumed to be `static`

v1.3.2-py
CHANGELOG
1. Use django default options

v2.0.2-npm
Changelog
1. Both Named & Default export
2. Added browser reload feature

v1.3.1-npm
Changelog
1. Fix 31
2. Export both named & default

v1.3.1-py
CHANGELOG

1. Allow path as `BUILD_DIR`

v1.3.0-npm
CHANGELOG

1. Type: string & string[] can be passed as argument to the plugin
2. Possible bug fix: user defined configurations were not passed (28 )

v1.3.0-py
CHANGELOG
1. Do not try to read manifest.json if it does not exist. This used to stop the server from starting without menifest.json file. Also was causing error in build process. 18

v1.2.0-py
Changelog

1. Fixed the bug: build failing if `DEV_MODE` was set to `False`

v1.2.0-npm
Changelog
1. Added support for passing additional arguments in manage.py commands

1.1.1

Changelog
- Added autocompletion support via `jsconfig.json` for app aliases
- Ignore `django_vite_plugin` app from installed apps in alias and other places

1.1.0

Changelog
- Introduced new configuration option `root`
- Added support for keeping `vite.config.js` in nested directory or outside
- STATIC_LOOKUP now uses built-in staticfinder

Fixes
- CSS attributes in production mode were missing

1.0.0

- Added support for dynamic assets & attributes
- Added app aliases (`s:app`, `t:app`)
- Static lookup adds `static/<app_name>` instead of `static`

0.0.1

Links

Releases

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.