isomorphic-style-loader
isomorphic-style-loader copied to clipboard
How to make hot reloading work?
In my case it doesn't work at all. JSX in component itself is hot reloaded on change, but styles in withStyles() are not.
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.
How do we do hot reloading with Webpack 4 since the debug option has been removed?
Like this! :)
defaultConfig.plugins.push(
new webpack.LoaderOptionsPlugin({
debug: true,
})
);