Skip to content

Commit 25a0b66

Browse files
mxstbrgaearon
authored andcommitted
Disable dot rule of connect-history-api-fallback (#422)
Ref #387
1 parent 623e1bd commit 25a0b66

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
@@ -46,7 +46,7 @@
4646
"babel-runtime": "6.11.6",
4747
"case-sensitive-paths-webpack-plugin": "1.1.3",
4848
"chalk": "1.1.3",
49-
"connect-history-api-fallback": "1.2.0",
49+
"connect-history-api-fallback": "1.3.0",
5050
"cross-spawn": "4.0.0",
5151
"css-loader": "0.23.1",
5252
"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)