File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 31
31
"loader-utils" : " ^0.2.15" ,
32
32
"moment" : " ^2.14.1" ,
33
33
"optimist" : " ^0.6.1" ,
34
+ "progress-bar-webpack-plugin" : " ^1.8.0" ,
34
35
"right-pad" : " ^1.0.0" ,
35
36
"serve-index" : " ^1.8.0" ,
36
37
"serve-static" : " ^1.11.1" ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ exports.run = (options) => {
17
17
var cwd = options . cwd ,
18
18
min = options . m || options . min || false ,
19
19
lint = options . l || options . lint || false ,
20
- sourcemap = options . s || options . sourcemap || true ,
20
+ sourcemap = options . s || options . sourcemap ,
21
21
project = new Project ( cwd ) ;
22
22
23
23
project . readConfig ( {
@@ -59,7 +59,7 @@ exports.run = (options) => {
59
59
}
60
60
} )
61
61
62
- success ( 'complete in ' + statsInfo . time + 'ms\n' )
62
+ info ( )
63
63
64
64
function endWith ( string , suffix ) {
65
65
return string . indexOf ( suffix , string . length - suffix . length ) !== - 1 ;
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ let webpack = require('webpack'),
7
7
8
8
let Config = require ( './Config.js' ) ,
9
9
Manager = require ( '../modules/manager.js' ) ,
10
- ExtractTextPlugin = require ( "extract-text-webpack-plugin" ) ;
10
+ ExtractTextPlugin = require ( "extract-text-webpack-plugin" ) ,
11
+ ProgressBarPlugin = require ( 'progress-bar-webpack-plugin' ) ;
11
12
12
13
class Project {
13
14
constructor ( cwd ) {
@@ -176,6 +177,8 @@ class Project {
176
177
childProcess . execSync ( 'rm -rf ' + config . output . path ) ;
177
178
} catch ( e ) { }
178
179
180
+ config . plugins . push ( new ProgressBarPlugin ( ) )
181
+
179
182
webpack ( config , function ( err , stats ) {
180
183
globby . sync ( '**/*.cache' , {
181
184
cwd : config . output . path
You can’t perform that action at this time.
0 commit comments