diff options
author | Vitaly Takmazov | 2018-07-06 02:40:41 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | 3600c2c3cf50930ae2768726b07e0e8fb9c19c0c (patch) | |
tree | 74eef9c2244160c778bcef2a83345e0581f4b301 | |
parent | 9ad14ff8f46df2488cef95ea74c0be87bffdcc49 (diff) |
Webpack: content hash in output chunks
-rw-r--r-- | vnext/src/components/Settings.js | 4 | ||||
-rw-r--r-- | 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 { <p> { settings.emails ? settings.emails.map(email => - <React.Fragment> + <React.Fragment key={email}> <label> - <input type="radio" name="account" value="{{ email }}" />{{ email }} + <input type="radio" name="account" value="{{ email }}" />{email} </label> <br /> {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') }, |