Execute an extern JavaScript-File when the livereload with ionic serve gets triggered

Hello Ionic-Community,

I would like to execute an extern JavaScript-File (copy files from X to Y) when ionic serve is running and something has be changed, so the livereload gets triggered.

Is there some kind of hook in the app-scripts-module where I can attach the JavaScript-File / the JavaScript-Code?

Greetings,
Michael

@SerQuicky Did you try taking a look at the copy in: https://www.npmjs.com/package/@ionic/app-scripts?

It also occurs to me that you overwrite the file: ionic_copy (--copy or -y) with yours and add custom tasks.

Check the options in documentation before and check this post:

1 Like

Thanks for reply, with the help of your comment and the linked thread I was able to implement the extern script.

1 Like