I think I wrote about this before. Yesterday I was making the final changes for a PWA app with Ionic4… until that time, I tested my app using
ionic serve or
ionic build. Then, I decided to use
ionic build --prod… and the compiler started to complain about a LOT of things that it had never complained before!! And the worst is that it was RIGHT about complaining about those things (like referencing a private member inside the page’s html).
My question is: what is the logic about having a different set of restrictions/validations when building for dev and when building for production??? If my app builds ok in dev IT ALSO SHOULD BUILD OK in production mode, shouldn’t it ?