Ionic serve reload hook?

I’m trying to hook into the ionic serve reload function in order to run a script, similar to the hooks on “ionic:serve:before”. However, that one only runs once, each time you run “ionic serve”, and not on the reload.

Does anyone have a solution to this?

Thanks in advance,

You could add the code that you are trying to make with a brief description so that we can help you better.


There’s not much to it at this point. package.json consists of the following line, which I’m using to test when the hook is run. The console render the line of asterixes once when “ionic serve” is first run, but not after the live reload happens.

if I can get this running on reload, I can then use the package.json config to run the actual script I want to run.

  "scripts": {
    "ionic:serve:before": "echo ***************************",