Skip to content

Commit

Permalink
Disable dot rule of connect-history-api-fallback (facebook#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr authored and George Czabania committed Sep 7, 2016
1 parent 1542970 commit 7e54fa2
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 @@ -46,7 +46,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",
"copy-webpack-plugin": "3.0.1",
"cross-spawn": "4.0.0",
"css-loader": "0.23.1",
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 7e54fa2

Please sign in to comment.