PWA Specific Build Hooks

Hello Ionic community!

I have a quick question regarding Ionic PWAs.

Are there any build hooks I can use that are specific to the PWA target?

I’d like to add a hook just for building the PWA version of the app that updates the base href (for Firebase deployment), so I don’t have to do this manually every time. I don’t want this hook script to run for the IOS or Android builds, just PWA. Is this possible?

Disregard, just discovered I can easily achieve what I want using an option passed to the ng build command:

ionic build --prod -- --base-href /custom-href/

1 Like