angular-cli/packages/@angular/cli/custom-typings.d.ts
Filipe Silva a54a991b2f feat(@angular/cli): add host check flags to ng serve
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
2017-05-09 21:04:58 +01:00

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;
}