Skip to content

Commit

Permalink
fix nested route refresh in dev mode, closes coryhouse#65
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Foraker committed Jul 1, 2016
1 parent fdb0c42 commit 3557a5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/srcServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ browserSync({
baseDir: 'src',

middleware: [
historyApiFallback(),

webpackDevMiddleware(bundler, {
// Dev middleware can't access config, so we provide publicPath
publicPath: config.output.publicPath,
Expand All @@ -38,9 +40,7 @@ browserSync({
}),

// bundler should be the same as above
webpackHotMiddleware(bundler),

historyApiFallback()
webpackHotMiddleware(bundler)
]
},

Expand Down

0 comments on commit 3557a5f

Please sign in to comment.