Use content hash for better cache

This commit is contained in:
Pig Fang 2018-08-11 09:16:53 +08:00
parent 9b846a4733
commit 519782e0f3

View File

@ -34,7 +34,7 @@ const config = {
filename: '[name].js', filename: '[name].js',
chunkFilename: devMode chunkFilename: devMode
? '[id].js' ? '[id].js'
: '[id].[chunkhash:7].js' : '[id].[contenthash:7].js'
}, },
module: { module: {
rules: [ rules: [