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

How to run scripts on normal build and each watch run?

Open codegain opened this issue 2 years ago • 2 comments

Hi,

I am having trouble finding out the correct way to execute scripts before each build (without --watch) and before each --watch run.

I tried onBeforeBuild, onBuildStart and onWatchRun which seem to work, but they only run once with --watch and not on every watch run. onAfterDone on the other hand always runs after each build with or without --watch.

Is there an equivalent of onAfterDone to execute scripts before the build on each build and on each watch run?

EDIT: I should add that I already tried onBeforeBuild and onWatchRun with the same scripts. The scripts do execute on the start of --watch but not before/during every watch run.

codegain avatar Feb 07 '23 14:02 codegain

@codegain Did you find any solution?

Fisujon avatar Mar 16 '23 14:03 Fisujon

@Fisujon Nope sorry

codegain avatar Mar 20 '23 09:03 codegain