Skip to content

Commit

Permalink
fix(maleo-core/build): use contenthash instead of hash (#227)
Browse files Browse the repository at this point in the history
prevent error when unrelated chunk hash updated
  • Loading branch information
alvinkl authored Sep 13, 2019
1 parent f6c28eb commit 96ffdfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/Maleo.js/src/build/webpack/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,8 @@ export const getDefaultOutput = (
path: path.resolve(projectDir, buildDirectory, CLIENT_BUILD_DIR),
publicPath,

chunkFilename: isDev ? '[name].js' : '[name]-[hash].js',
filename: isDev ? '[name].js' : '[name]-[hash].js',
chunkFilename: isDev ? '[name].js' : '[name]-[contenthash].js',
filename: isDev ? '[name].js' : '[name]-[contenthash].js',
library: '[name]',
...hmr,
};
Expand Down

0 comments on commit 96ffdfe

Please sign in to comment.