Currently, the reporter exposes 4 hooks: error, warn, info and stats (code).
Whenever a hook is called, it passes to the callback some data that I named HookData (code).
This is the current structure of the HookData type:
const hookData = {
context: 'C:/files/myproj',
hookId: 'compiler.done',
count: 1, // incremental
lastCall: 1560338239264, // timestamp of the last call, will probably change name
data: "data from webpack hook" // stats, error, warn, ecc..
};
What do you think about it?
Which other information could be useful for a user writing a custom reporter?
Currently, the reporter exposes 4 hooks: error, warn, info and stats (code).
Whenever a hook is called, it passes to the callback some data that I named
HookData(code).This is the current structure of the
HookDatatype:What do you think about it?
Which other information could be useful for a user writing a custom reporter?