Different steps for debug vs production build/package

Hi,
How can I set up the build and package process to do different things when running either debug or production package in ionic pro?

For example, when doing a debug build I don’t want the --prod to be added to the build call, but in production build I do.

Thanks,
Rob