Skip to content

Commit fecabe7

Browse files
committed
fix(serve): enable routes with dots
Fix #2168
1 parent 1524bc1 commit fecabe7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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/tasks/serve-webpack.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export default Task.extend({
5555
this.project.root,
5656
`./${CliConfig.fromProject().config.apps[0].root}`
5757
),
58-
historyApiFallback: true,
58+
historyApiFallback: {
59+
disableDotRule: true,
60+
},
5961
stats: webpackDevServerOutputOptions,
6062
inline: true,
6163
proxy: proxyConfig,

0 commit comments

Comments
 (0)