devtool: ifProduction('source-map', 'cheap-module-eval-source-map'), entry: removeEmpty([ propIf(doHmr, 'webpack-hot-middleware/client'), path.resolve(__dirname, 'src/index.js') ]), new DotenvWebpackPlugin(), new webpack.HashedModuleIdsPlugin(), propIf(doHmr, new webpack.HotModuleReplacementPlugin()), new HtmlWebpackPlugin({ template: path.resolve(__dirname, 'src/index.html'), propIf(doHmr, 'style-loader', MiniCssExtractPlugin.loader), stats: propIf(doHmr, { context: process.cwd(), assets: false,