johnagan / clean-webpack-plugin

A webpack plugin to remove your build folder(s) before building
MIT License
1.96k stars 136 forks source link

Better Error handling #168

Closed TMaszko closed 4 years ago

TMaszko commented 4 years ago

Issue description or question

When a method inside of a plugin catched the error it won't appear in a console. Webpack will just stop its compilation and gets stuck there. I think it's caused by lack of error handling in hooks version. Try catch blocks were omitted there. I locally improved error handling and it was pretty simple but I think these additional information would be significant for the users. I could provide PR for these changes :). WDYT @johnagan ?

Webpack Config

No related

// paste your webpack config here

Environment

No related Run: npx envinfo --system --binaries --npmPackages clean-webpack-plugin,webpack

# Paste the result here