Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): show --disable-host-check warni…
Browse files Browse the repository at this point in the history
…ng only when not using `disableHostCheck`

Closes #20951
  • Loading branch information
alan-agius4 authored and clydin committed May 26, 2021
1 parent 6e2c292 commit 7ff41e4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export function serveWebpackBrowser(
}

if (
!options.disableHostCheck &&
options.host &&
!/^127\.\d+\.\d+\.\d+/g.test(options.host) &&
options.host !== 'localhost'
Expand Down

0 comments on commit 7ff41e4

Please sign in to comment.