{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9209","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9209/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9209/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9209/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/9209","id":371502113,"node_id":"MDU6SXNzdWUzNzE1MDIxMTM=","number":9209,"title":"Netlify CMS always includes Netlify Identity Widget in JS","user":{"login":"nakedible","id":445682,"node_id":"MDQ6VXNlcjQ0NTY4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/445682?v=4","gravatar_id":"","url":"https://api.github.com/users/nakedible","html_url":"https://github.com/nakedible","followers_url":"https://api.github.com/users/nakedible/followers","following_url":"https://api.github.com/users/nakedible/following{/other_user}","gists_url":"https://api.github.com/users/nakedible/gists{/gist_id}","starred_url":"https://api.github.com/users/nakedible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakedible/subscriptions","organizations_url":"https://api.github.com/users/nakedible/orgs","repos_url":"https://api.github.com/users/nakedible/repos","events_url":"https://api.github.com/users/nakedible/events{/privacy}","received_events_url":"https://api.github.com/users/nakedible/received_events","type":"User","site_admin":false},"labels":[{"id":779050110,"node_id":"MDU6TGFiZWw3NzkwNTAxMTA=","url":"https://api.github.com/repos/gatsbyjs/gatsby/labels/type:%20feature%20or%20enhancement","name":"type: feature or enhancement","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-18T12:17:57Z","updated_at":"2018-10-26T18:14:46Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Description\r\n\r\nNetlify identity widget can be disabled for `gatsby-plugin-netlify-cms` by specifying `enableIdentityWidget: false` in configuration. I would expect that this would also ensure that the netlify identity widget would not be included in the built application JS files through WebPack. However, by using `source-map-explorer` that there is 161 kB of `netlify-identity-widget` present in the build.\r\n\r\n### Steps to reproduce\r\n\r\n1. Add netlify CMS plugin:\r\n```\r\n    {\r\n      resolve: 'gatsby-plugin-netlify-cms',\r\n      options: {\r\n        enableIdentityWidget: false,\r\n        modulePath: `${__dirname}/src/cms/cms.js`\r\n      }\r\n    },\r\n```\r\n2. Build site `npm run build`\r\n3. Check if the resulting app has widget included: `npx source-map-explorer public/app-*.js`\r\n\r\n### Expected result\r\n\r\nNetlify-identity-widget should be excluded if disabled.\r\n\r\n### Actual result\r\n\r\nNetlify-identity-widget is included in JS bundle.\r\n\r\n### Environment\r\n\r\nCannot get info due to #8502 "},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/433497799","html_url":"https://github.com/gatsbyjs/gatsby/issues/9209#issuecomment-433497799","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9209","id":433497799,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzQ5Nzc5OQ==","user":{"login":"erquhart","id":2112202,"node_id":"MDQ6VXNlcjIxMTIyMDI=","avatar_url":"https://avatars3.githubusercontent.com/u/2112202?v=4","gravatar_id":"","url":"https://api.github.com/users/erquhart","html_url":"https://github.com/erquhart","followers_url":"https://api.github.com/users/erquhart/followers","following_url":"https://api.github.com/users/erquhart/following{/other_user}","gists_url":"https://api.github.com/users/erquhart/gists{/gist_id}","starred_url":"https://api.github.com/users/erquhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erquhart/subscriptions","organizations_url":"https://api.github.com/users/erquhart/orgs","repos_url":"https://api.github.com/users/erquhart/repos","events_url":"https://api.github.com/users/erquhart/events{/privacy}","received_events_url":"https://api.github.com/users/erquhart/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T18:14:46Z","updated_at":"2018-10-26T18:14:46Z","author_association":"CONTRIBUTOR","body":"Dynamically loading when the hash is present could work."}}
{"actor":{"display_login":"erquhart"}}