Execute script during install/serve

Hello all

I’m using Ironic React with Capacitor.

Is ist possbile to execute Javascript during serve/install? I want to same text files with settings setup during the serve/install process. This should work on Android/IOS as well as on web.

Thanks and Regards