File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
packages/angular-cli/tasks Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { ServeTaskOptions } from '../commands/serve';
1111import { CliConfig } from '../models/config' ;
1212import { oneLine } from 'common-tags' ;
1313import * as url from 'url' ;
14+ import { stripIndents } from 'common-tags' ;
1415const opn = require ( 'opn' ) ;
1516
1617export default Task . extend ( {
@@ -109,6 +110,17 @@ export default Task.extend({
109110
110111 webpackDevServerConfiguration . hot = serveTaskOptions . hmr ;
111112
113+ if ( serveTaskOptions . target === 'production' ) {
114+ ui . writeLine ( chalk . red ( stripIndents `
115+ ****************************************************************************************
116+ This is a simple server for use in testing or debugging Angular applications locally.
117+ It hasn't been reviewed for security issues.
118+
119+ DON'T USE IT FOR PRODUCTION USE!
120+ ****************************************************************************************
121+ ` ) ) ;
122+ }
123+
112124 ui . writeLine ( chalk . green ( oneLine `
113125 **
114126 NG Live Development Server is running on
You can’t perform that action at this time.
0 commit comments