Run a script after compilation


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:

Thank you very much for your feedback.