From d4ba5fc35d6e44ba7d9833b44bdea53243adb01a Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Thu, 30 Jun 2016 09:40:09 -0500 Subject: [PATCH] Support watchOptions configuration. 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. --- src/server/middleware.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/middleware.js b/src/server/middleware.js index c01a7fc2bed3..14fb2da14c93 100644 --- a/src/server/middleware.js +++ b/src/server/middleware.js @@ -23,6 +23,7 @@ export default function (configDir) { const devMiddlewareOptions = { noInfo: true, publicPath: config.output.publicPath, + watchOptions: config.watchOptions || {}, }; const router = new Router();