Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
Add hash to the chunk filename by default
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed Apr 23, 2021
1 parent 2d9d9a1 commit bb90957
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions create-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ function getDefaultConfig() {
devtool: "cheap-module-eval-source-map",

output: {
// Add hash to the chunk filename by default. This ok since it is
// automatically loaded by the bundled code eg. we don't manually
// need to write this anywhere
chunkFilename: "chunk-[id]-[name]-[chunkhash].js",
filename: "[name].js",
path: process.cwd() + "/dist",
},
Expand Down

0 comments on commit bb90957

Please sign in to comment.