Skip to content

Commit

Permalink
Support watchOptions configuration. (#287)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lukesneeringer authored and arunoda committed Jun 30, 2016
1 parent b85b55f commit fc14cad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function (configDir) {
const devMiddlewareOptions = {
noInfo: true,
publicPath: config.output.publicPath,
watchOptions: config.watchOptions || {},
};

const router = new Router();
Expand Down

0 comments on commit fc14cad

Please sign in to comment.