'Override render_js from django-pipline so that js file urls are based on the applied theme'

def render_js(self, package, path):

    template_name = (package.template_name or 'pipeline/js.html')
    context = package.extra_context
    context.update({'type': guess_type(path, 'text/javascript'), 'url': mark_safe(get_static_file_url(path))})
    return render_to_string(template_name, context)
