Skip to content

Commit 290fe43

Browse files
alan-agius4clydin
authored andcommitted
refactor(@angular-devkit/build-angular): deprecate hmrWarning and servePathDefaultWarning options
With this change we deprecate servePathDefaultWarning and hmrWarning which no longer has an effect. Using any unsupported deploy-url or base-href serve path value will result in a hard warning.
1 parent f33d10d commit 290fe43

File tree

1 file changed

+1
-2
lines changed
  • packages/angular_devkit/build_angular/src/dev-server

1 file changed

+1
-2
lines changed

packages/angular_devkit/build_angular/src/dev-server/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,7 @@ export function buildServePath(
463463
let servePath = serverOptions.servePath;
464464
if (!servePath && servePath !== '') {
465465
const defaultPath = _findDefaultServePath(browserOptions.baseHref, browserOptions.deployUrl);
466-
const showWarning = serverOptions.servePathDefaultWarning;
467-
if (defaultPath == null && showWarning) {
466+
if (defaultPath == null) {
468467
logger.warn(tags.oneLine`
469468
Warning: --deploy-url and/or --base-href contain unsupported values for ng serve. Default
470469
serve path of '/' used. Use --serve-path to override.

0 commit comments

Comments
 (0)