From 3600c2c3cf50930ae2768726b07e0e8fb9c19c0c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 6 Jul 2018 02:40:41 +0300 Subject: Webpack: content hash in output chunks --- vnext/src/components/Settings.js | 4 ++-- vnext/webpack.config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vnext/src/components/Settings.js b/vnext/src/components/Settings.js index 6bd8729e..5e235dc6 100644 --- a/vnext/src/components/Settings.js +++ b/vnext/src/components/Settings.js @@ -122,9 +122,9 @@ export default class Settings extends React.Component {
{
settings.emails ? settings.emails.map(email =>
-
{settings.emails.length > 1 &&
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')
},
--
cgit v1.2.3