File tree 1 file changed +12
-0
lines changed
packages/angular-cli/tasks
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';
11
11
import { CliConfig } from '../models/config' ;
12
12
import { oneLine } from 'common-tags' ;
13
13
import * as url from 'url' ;
14
+ import { stripIndents } from 'common-tags' ;
14
15
const opn = require ( 'opn' ) ;
15
16
16
17
export default Task . extend ( {
@@ -109,6 +110,17 @@ export default Task.extend({
109
110
110
111
webpackDevServerConfiguration . hot = serveTaskOptions . hmr ;
111
112
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
+
112
124
ui . writeLine ( chalk . green ( oneLine `
113
125
**
114
126
NG Live Development Server is running on
You can’t perform that action at this time.
0 commit comments