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