Skip to content

Falling back to static in production #102

@jptaylor

Description

@jptaylor

@owais great work on this loader. In my use case, I like to build and post-process my production bundles locally and build them into the django project's static folder. These get deployed as part of collectstatic, and benefit from the staticfiles hashing mixin which works great.

To keep my setup, I was wondering if there was a case for having the loader fallback to the standard static file loader when in production?

Example:

{% render_bundle 'main' default='js/main.js' %}

which is effectively the same as writing:

{% static 'js/main.js' %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions