Skip to content

Commit

Permalink
fix(serve): enable routes with dots (#2535)
Browse files Browse the repository at this point in the history
Fix #2168
  • Loading branch information
filipesilva authored and Brocco committed Oct 19, 2016
1 parent 31f61d0 commit 067c63c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"typescript": "2.0.2",
"url-loader": "^0.5.7",
"webpack": "2.1.0-beta.25",
"webpack-dev-server": "2.1.0-beta.3",
"webpack-dev-server": "2.1.0-beta.9",
"webpack-md5-hash": "0.0.5",
"webpack-merge": "^0.14.0",
"zone.js": "^0.6.23"
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/custom-typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interface IWebpackDevServerConfigurationOptions {
contentBase?: string;
hot?: boolean;
historyApiFallback?: boolean;
historyApiFallback?: {[key: string]: boolean} | boolean;
compress?: boolean;
proxy?: {[key: string]: string};
staticOptions?: any;
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"typescript": "2.0.2",
"url-loader": "^0.5.7",
"webpack": "2.1.0-beta.25",
"webpack-dev-server": "2.1.0-beta.3",
"webpack-dev-server": "2.1.0-beta.9",
"webpack-md5-hash": "0.0.5",
"webpack-merge": "^0.14.0",
"zone.js": "^0.6.23"
Expand Down
4 changes: 3 additions & 1 deletion packages/angular-cli/tasks/serve-webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export default Task.extend({
this.project.root,
`./${CliConfig.fromProject().config.apps[0].root}`
),
historyApiFallback: true,
historyApiFallback: {
disableDotRule: true,
},
stats: webpackDevServerOutputOptions,
inline: true,
proxy: proxyConfig,
Expand Down

0 comments on commit 067c63c

Please sign in to comment.