Skip to content

Instantly share code, notes, and snippets.

@cmpscabral
Created April 6, 2020 16:34
Show Gist options
  • Save cmpscabral/c1fe453ff0137fda4533c37dd94802f6 to your computer and use it in GitHub Desktop.
Save cmpscabral/c1fe453ff0137fda4533c37dd94802f6 to your computer and use it in GitHub Desktop.
quasar, cache busting, webpack, keep names
// First add this to your webpack config:
mix.webpackConfig({
output: {
chunkFilename: '[name].js?id=[chunkhash]',
}
});
//Then, when you specify the chunk name using this: /* webpackChunkName: "js/dashboard" */
//You will get this as a result: js/dashboard.js?id=0791710073c12eff5a3d in the webpack output dialog.
//The file will be saved as js/dashboard.js but referenced in the browser as js/dashboard.js?id=0791710073c12eff5a3d.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment