{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/babel-plugin-import/issues/103","repository_url":"https://api.github.com/repos/ant-design/babel-plugin-import","labels_url":"https://api.github.com/repos/ant-design/babel-plugin-import/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/babel-plugin-import/issues/103/comments","events_url":"https://api.github.com/repos/ant-design/babel-plugin-import/issues/103/events","html_url":"https://github.com/ant-design/babel-plugin-import/issues/103","id":197211039,"number":103,"title":"使用.babelrc配置无效","user":{"login":"RunningCoderLee","id":13218863,"avatar_url":"https://avatars.githubusercontent.com/u/13218863?v=3","gravatar_id":"","url":"https://api.github.com/users/RunningCoderLee","html_url":"https://github.com/RunningCoderLee","followers_url":"https://api.github.com/users/RunningCoderLee/followers","following_url":"https://api.github.com/users/RunningCoderLee/following{/other_user}","gists_url":"https://api.github.com/users/RunningCoderLee/gists{/gist_id}","starred_url":"https://api.github.com/users/RunningCoderLee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RunningCoderLee/subscriptions","organizations_url":"https://api.github.com/users/RunningCoderLee/orgs","repos_url":"https://api.github.com/users/RunningCoderLee/repos","events_url":"https://api.github.com/users/RunningCoderLee/events{/privacy}","received_events_url":"https://api.github.com/users/RunningCoderLee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-22T16:21:56Z","updated_at":"2016-12-22T22:01:47Z","closed_at":null,"body":"我使用create-react-app生成react项目，引入antd组件库后，如果在.babelrc中配置无法实现按需加载，在webpack的配置文件里配置则可以生效\r\n\r\n`.babelrc`配置如下：\r\n~~~JSON\r\n{\r\n  \"plugins\": [\r\n    [\"import\", {\r\n      \"libraryName\": \"antd\",\r\n      \"style\": \"css\"\r\n    }]\r\n  ]\r\n}\r\n~~~\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ant-design/babel-plugin-import/issues/comments/268900396","html_url":"https://github.com/ant-design/babel-plugin-import/issues/103#issuecomment-268900396","issue_url":"https://api.github.com/repos/ant-design/babel-plugin-import/issues/103","id":268900396,"user":{"login":"sorrycc","id":35128,"avatar_url":"https://avatars.githubusercontent.com/u/35128?v=3","gravatar_id":"","url":"https://api.github.com/users/sorrycc","html_url":"https://github.com/sorrycc","followers_url":"https://api.github.com/users/sorrycc/followers","following_url":"https://api.github.com/users/sorrycc/following{/other_user}","gists_url":"https://api.github.com/users/sorrycc/gists{/gist_id}","starred_url":"https://api.github.com/users/sorrycc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorrycc/subscriptions","organizations_url":"https://api.github.com/users/sorrycc/orgs","repos_url":"https://api.github.com/users/sorrycc/repos","events_url":"https://api.github.com/users/sorrycc/events{/privacy}","received_events_url":"https://api.github.com/users/sorrycc/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T22:01:47Z","updated_at":"2016-12-22T22:01:47Z","body":"eject 了? 没 eject 的时候不会走 `.babelrc` 的。https://github.com/facebookincubator/create-react-app/blob/15feb02/packages/react-scripts/config/webpack.config.dev.js#L149-L150"}}
{"actor":{"display_login":"sorrycc"}}