webpack-shell-plugin icon indicating copy to clipboard operation
webpack-shell-plugin copied to clipboard

onBuildError

Open krow-ten opened this issue 8 years ago • 5 comments

Analogous to onBuildStart and onBuildEnd, take in a script to execute when there is a webpack compilation error.

krow-ten avatar Dec 20 '16 09:12 krow-ten

Can you elaborate? What's your configuration?

opiepj avatar Dec 29 '16 06:12 opiepj

Hi, I was thinking of something a bit like https://github.com/JannesMeyer/system-bell-webpack-plugin but I'd like to execute a system command rather than have a 'bell' sound - the command could play a sound file or trigger some other notification (it's up to the user). Basically just need a hook into when there is a webpack compilation error.

krow-ten avatar Dec 29 '16 19:12 krow-ten

onBuildStart and onBuildEnd are in memory, what about using onBuildExit?

opiepj avatar Jan 09 '17 01:01 opiepj

@krow-ten Any updates?

opiepj avatar Jan 18 '17 00:01 opiepj

Hey sorry for the delay in reply. onBuildExit will always execute the given system command. What do you mean by "onBuildStart and onBuildEnd are in memory" ?

krow-ten avatar Jan 21 '17 19:01 krow-ten