File tree Expand file tree Collapse file tree 3 files changed +1
-34
lines changed Expand file tree Collapse file tree 3 files changed +1
-34
lines changed Original file line number Diff line number Diff line change @@ -43,38 +43,6 @@ exports.run = function (options) {
43
43
}
44
44
}
45
45
46
- const statsInfo = stats . toJson ( {
47
- errorDetails : true
48
- } ) ;
49
-
50
- if ( statsInfo . errors . length > 0 ) {
51
- statsInfo . errors . map ( ( err ) => {
52
- error ( err . red ) ;
53
- info ( ) ;
54
- } )
55
- }
56
-
57
- // TODO 测试warning情况
58
- if ( statsInfo . warnings . length > 0 ) {
59
- statsInfo . warnings . map ( ( warning ) => {
60
- warn ( err . yellow ) ;
61
- info ( ) ;
62
- } )
63
- }
64
-
65
- statsInfo . assets . map ( ( asset ) => {
66
- const size = asset . size > 1024 ?
67
- ( asset . size / 1024 ) . toFixed ( 2 ) + ' kB' :
68
- asset . size + ' bytes' ;
69
-
70
- // .cache文件不显示
71
- if ( ! / \. c a c h e $ / . test ( asset . name ) ) {
72
- log ( 'packed asset: ' . gray + asset . name + ' - ' + size ) ;
73
- }
74
- } )
75
-
76
- info ( ) ;
77
-
78
46
project . packCallbacks . forEach ( cb => cb ( options , stats ) ) ;
79
47
} ) ;
80
48
} ;
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ exports.run = (options) => {
112
112
113
113
// 输出server运行中 error/warning 信息
114
114
compiler . watch ( { } , function ( err , stats ) {
115
- const statsInfo = stats . toJson ( { errorDetails : true } ) ,
115
+ const statsInfo = stats . toJson ( { errorDetails : false } ) ,
116
116
logMethods = {
117
117
errors : error ,
118
118
warnings : warn
Original file line number Diff line number Diff line change @@ -239,7 +239,6 @@ class Project {
239
239
. forEach ( ( fp ) => fs . unlinkSync ( fp ) ) ;
240
240
241
241
if ( ! err ) {
242
-
243
242
let statsInfo = stats . toJson ( {
244
243
errorDetails : false
245
244
} ) ;
You can’t perform that action at this time.
0 commit comments