Skip to content

Commit 10bce5a

Browse files
mxstbrgaearon
authored andcommitted
Disable dot rule of connect-history-api-fallback (#422)
Ref #387
1 parent ffe6b2f commit 10bce5a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"babel-runtime": "6.11.6",
4444
"case-sensitive-paths-webpack-plugin": "1.1.3",
4545
"chalk": "1.1.3",
46-
"connect-history-api-fallback": "1.2.0",
46+
"connect-history-api-fallback": "1.3.0",
4747
"cross-spawn": "4.0.0",
4848
"css-loader": "0.23.1",
4949
"detect-port": "1.0.0",

scripts/start.js

+2
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ function addMiddleware(devServer) {
173173
// Every unrecognized request will be forwarded to it.
174174
var proxy = require(paths.appPackageJson).proxy;
175175
devServer.use(historyApiFallback({
176+
// Allow paths with dots in them to be loaded, reference issue #387
177+
disableDotRule: true,
176178
// For single page apps, we generally want to fallback to /index.html.
177179
// However we also want to respect `proxy` for API calls.
178180
// So if `proxy` is specified, we need to decide which fallback to use.

0 commit comments

Comments
 (0)