Skip to content

urlArgs to prevent caching #217

@lhoeppner

Description

@lhoeppner

RequireJS has a urlArgs config option which allows you to append url arguments to all required module files, which can be useful for invalidating cached js files.

Can this be done with webpack? (So that requireEnsure would include "1.bundle.js?v=1" instead of "1.bundle.js", where the "v=1" part might be based on a var in the window/global context)

I'm aware that I could use things like [hash] in the output file names, but I'd rather keep the same names.

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