-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Issue
plugins like friendly-errors-webpack-plugin or clean-terminal-webpack-plugin clean the terminal screen after every emit event in webpack, which would clean the current files display that's using process.stdout.write
Screenshots
Solutions
I've looked at how some other plugins does this, it turns out like unused-files-webpack-plugin just outputs a long string as the message for new Error() , I didn't really found a better way to do this (maybe can dig into webpack to see what are the formats compilation.warnings supports
Proposal
I've wrote a small PoC for using long new Error() strings instead of process.stdout.write() , the output would look like
, the output would not be cleared for those plugins
The example code is here, master...alxtz:master , if this looks fine I can clean up the code & write a PR

