isomorphic-style-loader icon indicating copy to clipboard operation
isomorphic-style-loader copied to clipboard

How to make hot reloading work?

Open alex-shamshurin opened this issue 8 years ago • 3 comments

In my case it doesn't work at all. JSX in component itself is hot reloaded on change, but styles in withStyles() are not.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39174804-how-to-make-hot-reloading-work?utm_campaign=plugin&utm_content=tracker%2F26439769&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F26439769&utm_medium=issues&utm_source=github).

alex-shamshurin avatar Nov 12 '16 09:11 alex-shamshurin

See https://github.com/kriasoft/isomorphic-style-loader#hot-reload

Just set the debug option to true in webpack config. I faced the same issue when using it with react-storybook.

atfzl avatar Dec 27 '16 12:12 atfzl

How do we do hot reloading with Webpack 4 since the debug option has been removed?

zaklampert avatar Feb 17 '19 21:02 zaklampert

Like this! :)

  defaultConfig.plugins.push(
    new webpack.LoaderOptionsPlugin({
      debug: true,
    })
  );

zaklampert avatar Feb 17 '19 21:02 zaklampert