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

onBuildExit fires before webpack is actually done

Open mikeerickson opened this issue 8 years ago • 3 comments

I have a script set to run when webpack is all done (onBuildExit) but it seems to fire before webpack is actually done (I have also tried onBuildEnd)

My script:

  webpackConfig.plugins.push(new WebpackShellPlugin({
    onBuildStart: ['./node_modules/.bin/bump prerelease'], // need to bump version first before files copied etc
    onBuildExit: ['echo "test"']
  }));

Results:

You can see in the screenshot below, the "test" message is definitely emitted before webpack is done

image

mikeerickson avatar Jan 20 '17 22:01 mikeerickson

I have the same issue

HazAT avatar Mar 28 '17 19:03 HazAT

same here :)

maximekl avatar Aug 08 '17 13:08 maximekl

Same here. Any workaround?

davidojedalopez avatar Apr 12 '18 15:04 davidojedalopez