Skip to content

Commit

Permalink
Changed chunkhash to contenthash
Browse files Browse the repository at this point in the history
Prevents new bundles when nothing is changed
  • Loading branch information
kapoko committed Apr 28, 2021
1 parent 60900ab commit 546b62e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
test: path.join(__dirname, "assets", "sass", "test.scss"),
},
output: {
filename: '[name].[chunkhash].js',
filename: '[name].[contenthash].js',
path: path.join(__dirname, 'dist')
},
module: {
Expand Down Expand Up @@ -78,7 +78,7 @@ module.exports = {
}),
new RemoveEmptyScriptsPlugin(),
new MiniCssExtractPlugin({
filename: '[name].[chunkhash].css'
filename: '[name].[contenthash].css'
}),
new PurgeCSSPlugin({
paths: purgeCSSPaths
Expand Down

0 comments on commit 546b62e

Please sign in to comment.