johnagan / clean-webpack-plugin

A webpack plugin to remove your build folder(s) before building

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better Error handling

TMaszko opened this issue · comments

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