Version: 1.0.0-alpha.01.0.0-alpha.11.0.0-alpha.21.0.0-alpha.31.0.0-alpha.41.0.0-alpha.51.0.0-alpha.61.0.0-alpha.71.0.0-alpha.81.0.0-alpha.91.0.0-alpha.101.0.0-alpha.111.0.0-alpha.121.0.0-alpha.131.0.0-alpha.141.0.0-alpha.151.0.0-alpha.161.0.0-beta.01.0.0-beta.11.0.0-beta.21.0.0-beta.31.0.0-beta.41.0.0-beta.51.0.0-beta.61.0.0-beta.71.0.0-beta.81.0.0-beta.91.0.0-beta.101.0.0-beta.111.0.0-beta.121.0.0-beta.131.0.0-beta.141.0.0-beta.151.0.0-beta.161.0.0-beta.171.0.0-beta.181.0.0-beta.191.0.0-beta.201.0.0-beta.211.0.0-beta.221.0.0-beta.231.0.0-beta.241.0.0-beta.251.0.0-beta.261.0.0-rc.11.0.0-rc.21.0.0-rc.31.0.0-rc.41.0.0-rc.51.0.0-rc.61.0.0-rc.71.0.01.0.11.0.21.0.31.0.41.0.51.0.61.1.01.1.11.1.21.1.31.1.41.2.01.2.11.2.21.2.31.2.41.3.01.3.11.3.21.3.31.3.41.3.51.3.61.3.71.4.01.4.11.4.21.4.31.4.41.4.51.5.01.5.11.5.21.5.31.5.41.5.51.5.61.5.71.5.81.6.01.6.11.6.21.7.01.7.11.7.21.7.31.7.41.8.01.8.11.8.21.8.31.8.41.8.51.8.61.8.71.8.81.8.91.8.101.9.01.9.11.9.21.9.31.9.41.9.51.9.62.0.02.0.12.0.22.0.32.0.42.0.52.0.62.0.72.0.82.0.92.1.02.1.12.1.22.1.32.1.42.1.52.1.62.1.72.1.82.1.92.1.102.1.112.1.122.1.132.1.142.1.152.2.02.2.12.2.22.2.32.2.42.2.52.2.62.2.72.2.82.2.92.2.102.2.112.2.122.3.02.3.12.4.02.4.12.4.22.4.32.4.43.0.0-alpha.03.0.0-alpha.13.0.0-alpha.23.0.0-alpha.33.0.0-alpha.43.0.0-alpha.53.0.0-alpha.63.0.0-alpha.73.0.0-alpha.83.0.0-alpha.93.0.0-alpha.103.0.0-beta.13.0.0-beta.23.0.0-beta.33.0.0-beta.43.0.0-beta.53.0.0-beta.63.0.0-beta.73.0.0-beta.83.0.0-beta.93.0.0-beta.103.0.0-beta.113.0.0-beta.123.0.0-beta.133.0.0-beta.153.0.0-beta.163.0.0-beta.173.0.0-beta.183.0.0-beta.193.0.0-beta.203.0.0-beta.213.0.0-beta.223.0.0-beta.233.0.0-beta.243.0.0-beta.253.0.0-beta.263.0.0-beta.273.0.0-beta.283.0.0-rc.13.0.0-rc.23.0.0-rc.33.0.03.0.13.0.23.0.33.0.43.1.03.1.13.1.23.1.33.1.43.1.53.1.63.1.73.1.83.1.93.1.103.2.03.2.13.2.23.2.33.2.43.2.53.2.63.2.73.2.83.2.93.3.03.3.13.3.23.3.3
const webpack = require('webpack')
module.exports = function (chain, cfg) {
if (cfg.ctx.dev && cfg.devServer.hot) {
chain.optimization
.namedModules(true) // HMR shows filenames in console on update
chain.plugin('hot-module-replacement')
.use(webpack.HotModuleReplacementPlugin)
}