webpack-shell-plugin-next
webpack-shell-plugin-next copied to clipboard
How to run scripts on normal build and each watch run?
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 Did you find any solution?
@Fisujon Nope sorry