mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
Two new flags are added to `ng serve`: - `--public-host` (aliased by `--live-reload-client): Specify the URL that the browser client will use. - `--disable-host-check`: Don't verify connected clients are part of allowed hosts. Setting `--disable-host-check` will output a warning: ``` WARNING Running a server with --disable-host-check is a security risk. See https://medium.com/webpack/webpack-dev-server-middleware-security-issues-1489d950874a for more information. ``` See #6070 for more context about this change. Fix #6070
27 lines
683 B
TypeScript
27 lines
683 B
TypeScript
interface IWebpackDevServerConfigurationOptions {
|
|
contentBase?: boolean | string | string[];
|
|
hot?: boolean;
|
|
historyApiFallback?: {[key: string]: any} | boolean;
|
|
compress?: boolean;
|
|
proxy?: {[key: string]: string};
|
|
staticOptions?: any;
|
|
quiet?: boolean;
|
|
noInfo?: boolean;
|
|
lazy?: boolean;
|
|
filename?: string;
|
|
watchOptions?: {
|
|
aggregateTimeout?: number;
|
|
poll?: number;
|
|
};
|
|
publicPath?: string;
|
|
headers?: { [key: string]: string };
|
|
stats?: { [key: string]: boolean };
|
|
inline: boolean;
|
|
https?: boolean;
|
|
key?: string;
|
|
cert?: string;
|
|
overlay?: boolean | { errors: boolean, warnings: boolean };
|
|
public?: string;
|
|
disableHostCheck?: boolean;
|
|
}
|