Skip to content

Versioning on the lang.js file? #167

Open
@emilsrits

Description

@emilsrits

I am having a problem with the outputted JS translations being cached and new texts not getting displayed until browser cache is cleared.

Is it possible to have versioning on lang.js file with Laravel Mix or maybe some other solution to this?

I am compiling it like in docs via webpack shell plugin:

new WebpackShellPluginNext({
    onBuildStart: {
        scripts: [`php artisan lang:js ${distCommon}/js/lang.js --quiet`]
    },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions