Reads a manifest file to import your assets into a Django template. Find
the URL for a single asset or the URLs for multiple assets by using
pattern matching against the file names. Path resolution handled using
Django's built-in staticfiles
app. Minimal configuraton,
cache-busting, split chunks.
Turns this
{% load manifest %}
<script src="{% manifest 'main.js' %}"></script>
Into this
<script src="/static/main.8f7705adfa281590b8dd.js"></script>
- Official documentation
- For an in-depth look at this package, check out this blog post here
- Quick start blog post
{% load manifest %}
<script src="{% manifest 'main.js' %}"></script>
turns into
<script src="/static/main.8f7705adfa281590b8dd.js"></script>
{% load manifest %}
{% manifest_match '*.js' '<script src="{match}"></script>' %}
turns into
<script src="/static/vendors~main.3ad032adfa281590f2a21.js"></script>
<script src="/static/main.8f7705adfa281590b8dd.js"></script>
Django Manifest Loader is distributed under the 3-clause BSD license. This is an open source license granting broad permissions to modify and redistribute the software.