{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9205","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9205/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9205/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9205/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/9205","id":371471950,"node_id":"MDU6SXNzdWUzNzE0NzE5NTA=","number":9205,"title":"[Question] Is there a way to disable map files?","user":{"login":"h0rhay","id":2151724,"node_id":"MDQ6VXNlcjIxNTE3MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2151724?v=4","gravatar_id":"","url":"https://api.github.com/users/h0rhay","html_url":"https://github.com/h0rhay","followers_url":"https://api.github.com/users/h0rhay/followers","following_url":"https://api.github.com/users/h0rhay/following{/other_user}","gists_url":"https://api.github.com/users/h0rhay/gists{/gist_id}","starred_url":"https://api.github.com/users/h0rhay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h0rhay/subscriptions","organizations_url":"https://api.github.com/users/h0rhay/orgs","repos_url":"https://api.github.com/users/h0rhay/repos","events_url":"https://api.github.com/users/h0rhay/events{/privacy}","received_events_url":"https://api.github.com/users/h0rhay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-18T10:51:17Z","updated_at":"2018-10-18T15:08:46Z","closed_at":null,"author_association":"NONE","body":"I'm trying to eliminate the sourcemap clutter for a production build deployment.\r\n\r\nI've tried the `gatsby-plugin-no-sourcemaps` plugin.. with this config:\r\n```\r\n{\r\n      resolve: `gatsby-plugin-no-sourcemaps`\r\n    }\r\n```\r\nI've also tried this:\r\nhttps://medium.com/@bjornrixman/disable-source-maps-in-gatsby-7e9f82bdc55f\r\n\r\nI've also tried this:\r\n```\r\n// gatsby-node.js\r\nexports.onCreateWebpackConfig = ({ actions, stage }) => {\r\n  if (stage === 'build-javascript') {\r\n    // turn off source-maps\r\n    actions.setWebpackConfig({\r\n      devtool: false\r\n    })\r\n  }\r\n};\r\n```\r\nFrom this thread:\r\nhttps://github.com/gatsbyjs/gatsby/issues/3817\r\n\r\nNone of the above works.. I still get a sourcemap JS file for EVERY path related to a Markdown file.. I have a few hundred MD files as its a documentation site.\r\n\r\nIs there any way I can stop the map files being generated?\r\n\r\nI'm on `\"gatsby\": \"^1.9.277\"` as 2 is still in beta.\r\n\r\nMany thanks :)\r\n"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/431046398","html_url":"https://github.com/gatsbyjs/gatsby/issues/9205#issuecomment-431046398","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9205","id":431046398,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTA0NjM5OA==","user":{"login":"oorestisime","id":3874836,"node_id":"MDQ6VXNlcjM4NzQ4MzY=","avatar_url":"https://avatars0.githubusercontent.com/u/3874836?v=4","gravatar_id":"","url":"https://api.github.com/users/oorestisime","html_url":"https://github.com/oorestisime","followers_url":"https://api.github.com/users/oorestisime/followers","following_url":"https://api.github.com/users/oorestisime/following{/other_user}","gists_url":"https://api.github.com/users/oorestisime/gists{/gist_id}","starred_url":"https://api.github.com/users/oorestisime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oorestisime/subscriptions","organizations_url":"https://api.github.com/users/oorestisime/orgs","repos_url":"https://api.github.com/users/oorestisime/repos","events_url":"https://api.github.com/users/oorestisime/events{/privacy}","received_events_url":"https://api.github.com/users/oorestisime/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T15:08:46Z","updated_at":"2018-10-18T15:08:46Z","author_association":"CONTRIBUTOR","body":"FYI gatsby 2 is already out (1 month ago) https://www.gatsbyjs.org/blog/2018-09-17-gatsby-v2/ "}}
{"actor":{"display_login":"oorestisime"}}