Laravel-JS-Localization
Laravel-JS-Localization copied to clipboard
Versioning on the lang.js file?
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`]
},
})
@rmariuzzo This might be useful for cache busting.