You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 formatscompilation.warnings
supportsProposal
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
The text was updated successfully, but these errors were encountered: