After read the NoErrorsPlugin
docs.
When there are errors while compiling this plugin skips the emitting phase (and recording phase), so there are no assets emitted that include errors.
Still, don't understand. How to use it?
I made a syntax error
, but it seems there is nothing different before I enable NoErrorsPlugin
.
I was reading the answer, but still don't get it. Here is what I found.
webpack.NoErrorsPlugin() is an optional plugin that tells the reloader to not reload if there is an error. The error is simply printed in the console, and the page does not reload. If you do not have this plugin enabled and you have an error, a red screen of death is thrown.
Copy from here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With