Skip to content

Commit 207239b

Browse files
alan-agius4hansl
authored andcommitted
fix(@angular-devkit/build-angular): incorrect warning message for hmrWarning
1 parent 43615ff commit 207239b

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ export class DevServerBuilder implements Builder<DevServerBuilderOptions> {
310310
for information on working with HMR for Webpack.`,
311311
);
312312
this.context.logger.warn(
313-
tags.oneLine`To disable this warning use "ng set warnings.hmrWarning=false".`);
313+
tags.oneLine`To disable this warning use "hmrWarning: false" under "serve"
314+
options in "angular.json".`,
315+
);
314316
}
315317
entryPoints.push('webpack/hot/dev-server');
316318
webpackConfig.plugins.push(new webpack.HotModuleReplacementPlugin());

0 commit comments

Comments
 (0)