Disable sourcemaps when building JavaScript
npm install gatsby-plugin-no-sourcemapsFor the times when your JavaScript sourcemaps are just too big to upload to your hosting provider.
``shell`
npm install gatsby-plugin-no-sourcemaps
`js``
// gatsby-config.js
module.exports = {
// ...
plugins: [
{
resolve: "gatsby-plugin-no-sourcemaps",
},
],
// ...
}