Closed jantimon closed 8 years ago
Command | Entries | Middleware | Result |
---|---|---|---|
$ webpack-dev-server --hot |
Yes | No | ✓ (HMR in both app and plugin) |
No | ✓ (no HMR in either, but both work) | ||
$ webpack-dev-server |
Yes | ✓ (everything breaks, no matter if our plugin is included or not) | |
No | ✓ (no HMR in either app or plugin, everything works) | ||
$ webpack-dev-server |
Yes | Yes | ? |
No | ? | ||
$ webpack-dev-server --hot |
Yes | ? | |
No | ? |
TODO: Test all the ways of doing HMR! (if the app doesn't have HMR, the styleguide can't either, and if the app has HMR, the styleguide should have it too)
TODO: Hot module replacement causes the loss of the component state.