Skip to content

Commit 78e1395

Browse files
clydinfilipesilva
authored andcommitted
fix(@angular/cli): honor project's hmr warning option
1 parent aa5656e commit 78e1395

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@angular/cli/tasks/serve.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ export default Task.extend({
119119
${yellow('NOTICE')} Hot Module Replacement (HMR) is enabled for the dev server.
120120
`);
121121

122-
const showWarning = CliConfig.fromGlobal().get('warnings.hmrWarning');
122+
const showWarning = CliConfig.fromProject().get('warnings.hmrWarning');
123123
if (showWarning) {
124124
ui.writeLine(' The project will still live reload when HMR is enabled,');
125125
ui.writeLine(' but to take advantage of HMR additional application code is required');
126126
ui.writeLine(' (not included in an Angular CLI project by default).');
127127
ui.writeLine(` See ${chalk.blue(webpackHmrLink)}`);
128128
ui.writeLine(' for information on working with HMR for Webpack.');
129129
ui.writeLine(oneLine`
130-
${yellow('To disable this warning use "ng set --global warnings.hmrWarning=false"')}
130+
${yellow('To disable this warning use "ng set warnings.hmrWarning=false"')}
131131
`);
132132
}
133133
entryPoints.push('webpack/hot/dev-server');

0 commit comments

Comments
 (0)