Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main.js.map not found in prod build #10981

Closed
abomadi opened this issue Mar 30, 2017 · 4 comments
Closed

main.js.map not found in prod build #10981

abomadi opened this issue Mar 30, 2017 · 4 comments

Comments

@abomadi
Copy link

abomadi commented Mar 30, 2017

hi i have posted this issue there, any idea ?
ionic-team/ionic-app-scripts#805

@jgw96
Copy link
Contributor

jgw96 commented Mar 30, 2017

Hello, thanks for using Ionic! We do not generate source maps in a prod build as they would add to the size of the app and therefore have a negative impact on performance. I am going to close this one as a duplicate of ionic-team/ionic-app-scripts#805.

@jgw96 jgw96 closed this as completed Mar 30, 2017
@abomadi
Copy link
Author

abomadi commented Apr 2, 2017

This is the issue!, that on my prod build the app do not initialize and when debugging on console it says
file:///var/containers/Bundle/Application/39C211E1-ACD2-4798-96FF-8909F63DB55A/TestApp.app/www/build/main.js.map Failed to load resource: The requested URL was not found on this server.

i know prod builds should not produce map sources and thats why im reporting this case !

Thanks

@expcapitaldev
Copy link

workaround:

package.json:
"ionic_uglifyjs": "./...../uglifyjs.config.js"
add "sourceMapUrl: false" to your uglifyjs.config.js

in node_modules/@ionic/app-scripts/dist/uglifyjs.js line 58
add "sourceMapUrl: uglifyJsConfig.sourceMapUrl"

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants