Run a script after compilation

Hello,

I need to run a script at the end of Ionic compilation to edit some files (after ionic build --prod). Can you tell me how to proceed please?
For information, I use version 3.9.2 of Ionic and 3.2.1 of App Scripts.
I tried several config ionic_copy and ionic_sass, but that does not suit me: https://ionicframework.com/docs/v3/developer-resources/app-scripts/

Thank you very much for your feedback.