samzilverberg/cordova-mixpanel-plugin

Cordova browser: plugin not installed while generating the build with --prod flag

Closed this issue · 1 comments

I'm getting plugin not installed warning after generating the build with this command ionic cordova build browser --prod and it doesn't track any events. If I generate the build with this command ionic cordova build browser, it tracks all the events

can't help, its an ionic specific problem and i'm not familiar with it anymore (last used it around 4 years ago).
--prod is an ionic flag, not a cordova one (you can see the cordova build docu here)
I have no idea what the ionic tool does when it uses that flag...
google found me this:
https://forum.ionicframework.com/t/what-does-prod-flag-do-exactly/120553

maybe it can point you in the right direction?