Skip to content

Commit 6f8b1b5

Browse files
authored
fix(serve): enable routes with dots (#2535)
Fix #2168
1 parent b57d1bd commit 6f8b1b5

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"typescript": "2.0.2",
111111
"url-loader": "^0.5.7",
112112
"webpack": "2.1.0-beta.25",
113-
"webpack-dev-server": "2.1.0-beta.3",
113+
"webpack-dev-server": "2.1.0-beta.9",
114114
"webpack-md5-hash": "0.0.5",
115115
"webpack-merge": "^0.14.0",
116116
"zone.js": "^0.6.23"

packages/angular-cli/custom-typings.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interface IWebpackDevServerConfigurationOptions {
22
contentBase?: string;
33
hot?: boolean;
4-
historyApiFallback?: boolean;
4+
historyApiFallback?: {[key: string]: boolean} | boolean;
55
compress?: boolean;
66
proxy?: {[key: string]: string};
77
staticOptions?: any;

packages/angular-cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"typescript": "2.0.2",
9393
"url-loader": "^0.5.7",
9494
"webpack": "2.1.0-beta.25",
95-
"webpack-dev-server": "2.1.0-beta.3",
95+
"webpack-dev-server": "2.1.0-beta.9",
9696
"webpack-md5-hash": "0.0.5",
9797
"webpack-merge": "^0.14.0",
9898
"zone.js": "^0.6.23"

packages/angular-cli/tasks/serve-webpack.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ export default Task.extend({
5757
this.project.root,
5858
`./${CliConfig.fromProject().config.apps[0].root}`
5959
),
60-
historyApiFallback: true,
60+
historyApiFallback: {
61+
disableDotRule: true,
62+
},
6163
stats: webpackDevServerOutputOptions,
6264
inline: true,
6365
proxy: proxyConfig,

0 commit comments

Comments
 (0)