Ionic Capacitor Pre/Post Build Script #3560
-
In our Ionic Cordova platform we could run scripts with hooks such as after_prepare, after_plugin_add, etc. Is there any equivalent with Capacitor? For instance, I would like to upload a source map to bugsnag every time I do a I suppose I could just add a command to run that script every time, but that seems tedious. Any feedback would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Capacitor doesn't have hooks, but the Ionic CLI has a few hooks that may be useful to you. |
Beta Was this translation helpful? Give feedback.
-
@dwieeb And one more followup question if you have a few minutes: Is there a way to allow the hook to be a typescript file as opposed to javascript file? We were using cordova-ts-config which no longer applies. Thanks! |
Beta Was this translation helpful? Give feedback.
Capacitor doesn't have hooks, but the Ionic CLI has a few hooks that may be useful to you.