File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export interface ServeTaskOptions {
27
27
sslCert ?: string ;
28
28
aot ?: boolean ;
29
29
open ?: boolean ;
30
+ progress ?: boolean ;
30
31
}
31
32
32
33
const ServeCommand = Command . extend ( {
@@ -88,6 +89,7 @@ const ServeCommand = Command.extend({
88
89
aliases : [ 'o' ] ,
89
90
description : 'Opens the url in default browser' ,
90
91
} ,
92
+ { name : 'progress' , type : Boolean , default : true } ,
91
93
] ,
92
94
93
95
run : function ( commandOptions : ServeTaskOptions ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ const SilentError = require('silent-error');
5
5
const Task = require ( 'ember-cli/lib/models/task' ) ;
6
6
import * as webpack from 'webpack' ;
7
7
const WebpackDevServer = require ( 'webpack-dev-server' ) ;
8
- const ProgressPlugin = require ( 'webpack/lib/ProgressPlugin' ) ;
9
8
import { webpackDevServerOutputOptions } from '../models/' ;
10
9
import { NgCliWebpackConfig } from '../models/webpack-config' ;
11
10
import { ServeTaskOptions } from '../commands/serve' ;
@@ -36,10 +35,14 @@ export default Task.extend({
36
35
) ;
37
36
webpackCompiler = webpack ( config ) ;
38
37
39
- webpackCompiler . apply ( new ProgressPlugin ( {
40
- profile : true ,
41
- colors : true
42
- } ) ) ;
38
+ if ( commandOptions . progress ) {
39
+ const ProgressPlugin = require ( 'webpack/lib/ProgressPlugin' ) ;
40
+
41
+ webpackCompiler . apply ( new ProgressPlugin ( {
42
+ profile : true ,
43
+ colors : true
44
+ } ) ) ;
45
+ }
43
46
44
47
let proxyConfig = { } ;
45
48
if ( commandOptions . proxyConfig ) {
You can’t perform that action at this time.
0 commit comments