Native Leaflet.js library not working with ionic on build


I’m using the leaflet.js library (not the angular leaflet directive), and everything works fine when I ionic serve my app. However when I build my app, My map renders as just grey. Has anyone else run into this problem? I’ve seen this happen with the angular leaflet directive with no real clear solution as how to fix it. I’m also using the MapQuest CDN for OSM. I’m not sure if that makes a difference. Here is my code:

I apologize if this has been solved already, I could not find an answer. Thanks for any help I may receive!

Was killing me too til i found this: Leaflet map not working in emulator, does work in browser