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

Debugging unminified build in gatsby v2 #10501

Closed
arturhenryy opened this issue Dec 17, 2018 · 4 comments
Closed

Debugging unminified build in gatsby v2 #10501

arturhenryy opened this issue Dec 17, 2018 · 4 comments
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@arturhenryy
Copy link

Summary

I get an Error Testing my site under ios 10 mobile safari. The problem is that i cannot debug it because the code is minified and the error message does not give me any hint at all.
Is threre anyway to debug the unminified build?

bildschirmfoto 2018-12-17 um 12 28 59

@LekoArts
Copy link
Contributor

Hey Artur,

if you want to have an unminified build + sourcemaps you have to visit the site while running gatsby develop. You can read here how to do it:
#5801

@LekoArts LekoArts added the type: question or discussion Issue discussing or asking a question about Gatsby label Dec 17, 2018
@m-allanson
Copy link
Contributor

There's also the --no-uglify flag, gatsby build --no-uglify should do a full build and skip the minification step.

See https://www.gatsbyjs.org/docs/gatsby-cli/#options-1

@arturhenryy
Copy link
Author

@m-allanson thanks i already discovered and used it. it seems the uglification of gatsby caused error in safari 10. do you know if one can tweek the uglifcation settings like this?

    uglify: {
      uglifyOptions: {
        mangle: { safari10: true }
      }
    }
```

@m-allanson
Copy link
Contributor

Fixed in #10536

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants