File tree 1 file changed +2
-2
lines changed
packages/@angular/cli/tasks
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -119,15 +119,15 @@ export default Task.extend({
119
119
${ yellow ( 'NOTICE' ) } Hot Module Replacement (HMR) is enabled for the dev server.
120
120
` ) ;
121
121
122
- const showWarning = CliConfig . fromGlobal ( ) . get ( 'warnings.hmrWarning' ) ;
122
+ const showWarning = CliConfig . fromProject ( ) . get ( 'warnings.hmrWarning' ) ;
123
123
if ( showWarning ) {
124
124
ui . writeLine ( ' The project will still live reload when HMR is enabled,' ) ;
125
125
ui . writeLine ( ' but to take advantage of HMR additional application code is required' ) ;
126
126
ui . writeLine ( ' (not included in an Angular CLI project by default).' ) ;
127
127
ui . writeLine ( ` See ${ chalk . blue ( webpackHmrLink ) } ` ) ;
128
128
ui . writeLine ( ' for information on working with HMR for Webpack.' ) ;
129
129
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"' ) }
131
131
` ) ;
132
132
}
133
133
entryPoints . push ( 'webpack/hot/dev-server' ) ;
You can’t perform that action at this time.
0 commit comments