Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
codegain opened this issue Feb 7, 2023 · 2 comments
Open

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

codegain opened this issue Feb 7, 2023 · 2 comments

Comments

@codegain
Copy link

codegain commented Feb 7, 2023

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.

@Fisujon
Copy link

Fisujon commented Mar 16, 2023

@codegain
Did you find any solution?

@codegain
Copy link
Author

@Fisujon Nope sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants