Created
April 6, 2020 16:34
-
-
Save cmpscabral/c1fe453ff0137fda4533c37dd94802f6 to your computer and use it in GitHub Desktop.
quasar, cache busting, webpack, keep names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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