Found this firebase-CLI command:
firebase setup:web --json
It will output the json required for initialising the firebase app based on the active firebase app (firebase use
).
Just need to include the resulting json in the build chain.
firebase setup:web --json
has been deprecated.
You can now use firebase apps:sdkconfig web --json
instead.
Full info here.