Skip to content Skip to sidebar Skip to footer

React Hot Reload Not Working With Webpack 4

React hot reload is not working. In webpack entry, I have following code. entry: { home: [ 'webpack-dev-server/client?http://0.0.0.0:8000', 'webp

Solution 1:

try updating your dev server config like so

const devServerOptions = {
    contentBase: './dist',
    hot: true,
    host: 'beta.whenidev.net',
    https: true,
  };
// if you're adding a dev server entry do it like this
  WebpackDevServer.addDevServerEntrypoints(config, devServerOptions);

Post a Comment for "React Hot Reload Not Working With Webpack 4"