Skip to content

Commit

Permalink
fix(serve): added accept html headers option to webpack-dev-server (#…
Browse files Browse the repository at this point in the history
…2990)

fixes #2989
  • Loading branch information
valorkin authored and filipesilva committed Nov 2, 2016
1 parent 9aa1099 commit 86f2a1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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?: {[key: string]: boolean} | boolean;
historyApiFallback?: {[key: string]: any} | boolean;
compress?: boolean;
proxy?: {[key: string]: string};
staticOptions?: any;
Expand Down
1 change: 1 addition & 0 deletions packages/angular-cli/tasks/serve-webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default Task.extend({
),
historyApiFallback: {
disableDotRule: true,
htmlAcceptHeaders: ['text/html', 'application/xhtml+xml']
},
stats: webpackDevServerOutputOptions,
inline: true,
Expand Down

0 comments on commit 86f2a1b

Please sign in to comment.