{"action":"created","issue":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/1060","repository_url":"https://api.github.com/repos/facebookincubator/create-react-app","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/1060/labels{/name}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/1060/comments","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/1060/events","html_url":"https://github.com/facebookincubator/create-react-app/issues/1060","id":190383214,"number":1060,"title":"Add a plugin to webpack config w/o ejecting","user":{"login":"orditeck","id":2186535,"avatar_url":"https://avatars.githubusercontent.com/u/2186535?v=3","gravatar_id":"","url":"https://api.github.com/users/orditeck","html_url":"https://github.com/orditeck","followers_url":"https://api.github.com/users/orditeck/followers","following_url":"https://api.github.com/users/orditeck/following{/other_user}","gists_url":"https://api.github.com/users/orditeck/gists{/gist_id}","starred_url":"https://api.github.com/users/orditeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orditeck/subscriptions","organizations_url":"https://api.github.com/users/orditeck/orgs","repos_url":"https://api.github.com/users/orditeck/repos","events_url":"https://api.github.com/users/orditeck/events{/privacy}","received_events_url":"https://api.github.com/users/orditeck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-18T18:00:09Z","updated_at":"2016-11-18T18:02:16Z","closed_at":"2016-11-18T18:02:16Z","body":"Is that possible? I'm using moment and it loads all the locales (so moment takes 200kB instead of 50kB in the build), the current fix for more than one year seems to be to exclude the locales via webpack using:\r\n\r\n```\r\nnew webpack.ContextReplacementPlugin(/moment[\\\\\\/]locale$/, /^\\.\\/(en)$/)\r\n```\r\n\r\nI tried to add it manually to `/node_modules/react-scripts/config/webpack.config.prod.js`and it works but I can't do that, and I don't want to eject."},"comment":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/comments/261598808","html_url":"https://github.com/facebookincubator/create-react-app/issues/1060#issuecomment-261598808","issue_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/1060","id":261598808,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T18:02:16Z","updated_at":"2016-11-18T18:02:16Z","body":"Maybe it's time for somebody to fork moment and make it Webpack-friendly if they'd rather not fix it? It's really not right that a library requires changes in the config.\r\n\r\nAnd no, we don't intend to allow modifying Webpack configs as this defeats the purpose of this tool. Your best bet would be to bring this up with Moment maintainers (this issue has been affecting people for years) or fork it."}}
{"actor":{"display_login":"gaearon"}}