Skip to content

Commit

Permalink
Disable dot rule of connect-history-api-fallback (#422)
Browse files Browse the repository at this point in the history
Ref #387
  • Loading branch information
mxstbr authored and gaearon committed Aug 25, 2016
1 parent ffe6b2f commit 10bce5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"babel-runtime": "6.11.6",
"case-sensitive-paths-webpack-plugin": "1.1.3",
"chalk": "1.1.3",
"connect-history-api-fallback": "1.2.0",
"connect-history-api-fallback": "1.3.0",
"cross-spawn": "4.0.0",
"css-loader": "0.23.1",
"detect-port": "1.0.0",
Expand Down
2 changes: 2 additions & 0 deletions scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ function addMiddleware(devServer) {
// Every unrecognized request will be forwarded to it.
var proxy = require(paths.appPackageJson).proxy;
devServer.use(historyApiFallback({
// Allow paths with dots in them to be loaded, reference issue #387
disableDotRule: true,
// For single page apps, we generally want to fallback to /index.html.
// However we also want to respect `proxy` for API calls.
// So if `proxy` is specified, we need to decide which fallback to use.
Expand Down

0 comments on commit 10bce5a

Please sign in to comment.