File tree 3 files changed +13
-8
lines changed
3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -6,24 +6,29 @@ export const ngAppResolve = (resolvePath: string): string => {
6
6
7
7
const webpackOutputOptions = {
8
8
colors : true ,
9
- hash : true ,
10
- timings : true ,
11
- chunks : true ,
9
+ hash : true , // required by custom stat output
10
+ timings : true , // required by custom stat output
11
+ chunks : true , // required by custom stat output
12
12
chunkModules : false ,
13
13
children : false , // listing all children is very noisy in AOT and hides warnings/errors
14
14
modules : false ,
15
15
reasons : false ,
16
16
warnings : true ,
17
- assets : false , // listing all assets is very noisy when using assets directories
18
- version : false
17
+ errors : true ,
18
+ assets : true , // required by custom stat output
19
+ version : false ,
20
+ errorDetails : false ,
21
+ moduleTrace : false ,
19
22
} ;
20
23
21
24
const verboseWebpackOutputOptions = {
22
25
children : true ,
23
26
assets : true ,
24
27
version : true ,
25
28
reasons : true ,
26
- chunkModules : false // TODO: set to true when console to file output is fixed
29
+ chunkModules : false , // TODO: set to true when console to file output is fixed
30
+ errorDetails : true ,
31
+ moduleTrace : true ,
27
32
} ;
28
33
29
34
export function getWebpackStatsConfig ( verbose = false ) {
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default Task.extend({
44
44
return reject ( err ) ;
45
45
}
46
46
47
- const json = stats . toJson ( 'verbose' ) ;
47
+ const json = stats . toJson ( statsConfig ) ;
48
48
if ( runTaskOptions . verbose ) {
49
49
this . ui . writeLine ( stats . toString ( statsConfig ) ) ;
50
50
} else {
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ export default Task.extend({
262
262
const server = new WebpackDevServer ( webpackCompiler , webpackDevServerConfiguration ) ;
263
263
if ( ! serveTaskOptions . verbose ) {
264
264
webpackCompiler . plugin ( 'done' , ( stats : any ) => {
265
- const json = stats . toJson ( 'verbose' ) ;
265
+ const json = stats . toJson ( statsConfig ) ;
266
266
this . ui . writeLine ( statsToString ( json , statsConfig ) ) ;
267
267
if ( stats . hasWarnings ( ) ) {
268
268
this . ui . writeLine ( statsWarningsToString ( json , statsConfig ) ) ;
You can’t perform that action at this time.
0 commit comments