Gatsby: Debugging unminified build in gatsby v2

Created on 17 Dec 2018  路  4Comments  路  Source: gatsbyjs/gatsby

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

question or discussion

All 4 comments

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:
https://github.com/gatsbyjs/gatsby/issues/5801

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

@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 } } }

Fixed in #10536

Was this page helpful?
0 / 5 - 0 ratings