Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versioning on the lang.js file? #167

Open
emilsrits opened this issue Mar 2, 2022 · 1 comment
Open

Versioning on the lang.js file? #167

emilsrits opened this issue Mar 2, 2022 · 1 comment

Comments

@emilsrits
Copy link

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`]
    },
})
@Wulfheart
Copy link

@rmariuzzo This might be useful for cache busting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants