aboutsummaryrefslogtreecommitdiff
path: root/vnext/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-06 02:40:41 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit3600c2c3cf50930ae2768726b07e0e8fb9c19c0c (patch)
tree74eef9c2244160c778bcef2a83345e0581f4b301 /vnext/webpack.config.js
parent9ad14ff8f46df2488cef95ea74c0be87bffdcc49 (diff)
Webpack: content hash in output chunks
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r--vnext/webpack.config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js
index 78210fee..4beeee35 100644
--- a/vnext/webpack.config.js
+++ b/vnext/webpack.config.js
@@ -19,8 +19,8 @@ module.exports = {
]
},
output: {
- filename: process.env.WEBPACK_SERVE ? '[name].js' : '[name].[chunkhash].bundle.js',
- chunkFilename: process.env.WEBPACK_SERVE ? '[name].js' : '[name].[chunkhash].bundle.js',
+ filename: process.env.WEBPACK_SERVE ? '[name].js' : '[name].[contenthash].bundle.js',
+ chunkFilename: process.env.WEBPACK_SERVE ? '[name].js' : '[name].[contenthash].bundle.js',
publicPath: '/',
path: path.resolve(__dirname, 'dist')
},