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:
Luke Sneeringer 2016-06-30 16:27:53 -05:00 committed by Arunoda Susiripala
parent b85b55fe65
commit fc14cad83b

View File

@ -23,6 +23,7 @@ export default function (configDir) {
const devMiddlewareOptions = {
noInfo: true,
publicPath: config.output.publicPath,
watchOptions: config.watchOptions || {},
};
const router = new Router();