rykener / django-manifest-loader

Simplifies webpack configuration with Django
https://django-manifest-loader.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
104 stars 12 forks source link

Can't assign asset paths to a variable in templates #7

Open rykener opened 3 years ago

rykener commented 3 years ago

in django's static template tag you can do

{% static 'main.js' as foobar %}

Even though the manifest tag is just a wrapper around the static tag, the modification that takes place will strip out any arguments after the name of the asset. The manifest tag should be modified to allow the as foobar to pass through