We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a49d278 commit 20a644eCopy full SHA for 20a644e
packages/angular_devkit/build_angular/src/dev-server/index.ts
@@ -48,7 +48,7 @@ export class DevServerBuilder implements Builder<DevServerBuilderSchema> {
48
let first = true;
49
let opnAddress: string;
50
51
- return from(checkPort(options.port || 4200, options.host || 'localhost')).pipe(
+ return from(checkPort(options.port || 0, options.host || 'localhost', 4200)).pipe(
52
tap((port) => options.port = port),
53
concatMap(() => this._getBrowserOptions(options)),
54
tap(opts => browserOptions = normalizeBrowserSchema(
0 commit comments