Skip to content

Commit 86f2a1b

Browse files
valorkinfilipesilva
authored andcommitted
fix(serve): added accept html headers option to webpack-dev-server (#2990)
fixes #2989
1 parent 9aa1099 commit 86f2a1b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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?: {[key: string]: boolean} | boolean;
4+
historyApiFallback?: {[key: string]: any} | boolean;
55
compress?: boolean;
66
proxy?: {[key: string]: string};
77
staticOptions?: any;

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

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default Task.extend({
7272
),
7373
historyApiFallback: {
7474
disableDotRule: true,
75+
htmlAcceptHeaders: ['text/html', 'application/xhtml+xml']
7576
},
7677
stats: webpackDevServerOutputOptions,
7778
inline: true,

0 commit comments

Comments
 (0)