mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
Support watchOptions configuration. (#287)
This commit causes the watchOptions in the configuration provided to `react-storybook` to be passed on to `webpack-dev-middleware`. This allows those who need these options for hot reloading to be able to use them again.
This commit is contained in:
parent
b85b55fe65
commit
fc14cad83b
@ -23,6 +23,7 @@ export default function (configDir) {
|
||||
const devMiddlewareOptions = {
|
||||
noInfo: true,
|
||||
publicPath: config.output.publicPath,
|
||||
watchOptions: config.watchOptions || {},
|
||||
};
|
||||
|
||||
const router = new Router();
|
||||
|
Loading…
x
Reference in New Issue
Block a user