diff --git a/packages/angular_devkit/build_angular/src/dev-server/index.ts b/packages/angular_devkit/build_angular/src/dev-server/index.ts index ccb872d2a970..9e0df32f22a5 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/index.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/index.ts @@ -226,6 +226,7 @@ export function serveWebpackBrowser( } if ( + !options.disableHostCheck && options.host && !/^127\.\d+\.\d+\.\d+/g.test(options.host) && options.host !== 'localhost'