Skip to content

Commit

Permalink
Fix CSS caching issue
Browse files Browse the repository at this point in the history
When the only changes are HTML or CSS the hash was not updated.
This commit should fix the issue.

For why hash is used instead of contenthash, see webpack-contrib/extract-text-webpack-plugin#763 (comment).
  • Loading branch information
gberaudo committed Mar 21, 2019
1 parent 84ae087 commit fb5a184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildtools/webpack.commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const config = function(hardSourceConfig, babelLoaderCacheDirectory) {
providePlugin,
new ExtractTextPlugin({
ignoreOrder: true,
filename: devMode ? '[name].css' : '[name].[chunkhash:6].css'
filename: devMode ? '[name].css' : '[name].[hash:6].css'
}),
new webpack.IgnorePlugin(/^\.\/locale$/, /node_modules\/moment\/src\/lib\/locale$/),
new HardSourceWebpackPlugin(hardSourceConfig || {}),
Expand Down

0 comments on commit fb5a184

Please sign in to comment.