django-webpack-loader
Transparently use webpack with django
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no runtime dependencies, supports current Django and Python versions, carries a permissive MIT license, and solves a common pain point in Django–Webpack integration. Install it if you are using Webpack to compile frontend assets for a Django project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- webpack-bundle-tracker must be configured in your Webpack build to generate the stats file before django-webpack-loader can read it.
- Low install friction with no runtime dependencies.
- Actively maintained with recent releases; supports modern Django (4.2–5.2) and Python (3.8–3.13) versions.
License · maintenance · safety
MIT License (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.
last release 2026-05-13 (93 days) · last repo commit 2026-05-13 · 2,541 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 969,888 downloads/mo, #4,611 on PyPI
Alternatives
Verify before relying
# Install
pip install django-webpack-loader
# In Django settings.py
INSTALLED_APPS = [
...
'webpack_loader',
]
WEBPACK_LOADER = {
'DEFAULT': {
'STATS_FILE': '/path/to/webpack-stats.json',
}
}
# In a Django template
{% load render_bundle from webpack_loader %}
{% render_bundle 'main' 'css' %}- Whether the package works with Webpack versions other than Webpack 5 (documentation mentions examples in Webpack 5 but does not explicitly state version compatibility).
- Whether hot-reload functionality is production-ready or development-only (documentation references a 'specific config' but details are not included in the excerpt).
What it is and what it does
Django Webpack Loader bridges Webpack and Django by consuming a stats file (webpack-stats.json) generated by webpack-bundle-tracker and exposing a template tag to render compiled bundles. It reads bundle metadata at runtime and injects the correct script and link tags into Django templates, handling asset paths and caching based on the DEBUG setting.
The package has no runtime dependencies and integrates directly into Django's template system. During development, it polls the stats file frequently to reflect live changes; in production, it caches the file once to minimize I/O. Configuration is done via Django settings, specifying the stats file location, bundle directory, and optional regex patterns to exclude certain assets.
Use it for
- Render CSS and JavaScript bundles compiled by Webpack into Django templates using a single template tag.
- Develop Django projects with hot-reloading frontend assets by polling the stats file during development.
- Cache bundle paths in production to avoid repeated stats file reads while serving pre-compiled assets.
- Exclude specific generated files (e.g., source maps, hot-update files) from template rendering via regex patterns.
- Integrate multiple Webpack entry points into different parts of a Django template for code splitting.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no runtime dependencies, supports current Django and Python versions, carries a permissive MIT license, and solves a common pain point in Django–Webpack integration. Install it if you are using Webpack to compile frontend assets for a Django project.
Install
django-webpack-loader on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained with recent releases; supports modern Django (4.2–5.2) and Python (3.8–3.13) versions.
webpack-bundle-tracker must be configured in your Webpack build to generate the stats file before django-webpack-loader can read it.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.
Quickstart
# Install
pip install django-webpack-loader
# In Django settings.py
INSTALLED_APPS = [
...
'webpack_loader',
]
WEBPACK_LOADER = {
'DEFAULT': {
'STATS_FILE': '/path/to/webpack-stats.json',
}
}
# In a Django template
{% load render_bundle from webpack_loader %}
{% render_bundle 'main' 'css' %}
Verify before relying
- Whether the package works with Webpack versions other than Webpack 5 (documentation mentions examples in Webpack 5 but does not explicitly state version compatibility).
- Whether hot-reload functionality is production-ready or development-only (documentation references a 'specific config' but details are not included in the excerpt).
Package facts
| License | MIT License permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 93 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 969,888 / month, #4,611 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: django_webpack_loader-3.2.4-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “webpack django integration”
- django-webpack-loaderIntegrates Webpack-compiled bundles into Django templates via a…
- django-js-reverseExposes Django named URLs to JavaScript, allowing frontend code to…
- django-webtestIntegrates WebTest with Django's testing framework to enable…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also django-navhelper · django-pipeline · django-components · django-tailwind · django-sass-processor · django-vite · django-jinja · django-template-partials · Flask-Assets · django-js-asset