diff --git a/package.json b/package.json index 51b2ee5156c..73d09034f82 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/start.js b/scripts/start.js index 84cf4f71272..aa68ab40ff3 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -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.