{"action":"created","issue":{"url":"https://api.github.com/repos/hubcarl/egg-react-webpack-boilerplate/issues/11","repository_url":"https://api.github.com/repos/hubcarl/egg-react-webpack-boilerplate","labels_url":"https://api.github.com/repos/hubcarl/egg-react-webpack-boilerplate/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/hubcarl/egg-react-webpack-boilerplate/issues/11/comments","events_url":"https://api.github.com/repos/hubcarl/egg-react-webpack-boilerplate/issues/11/events","html_url":"https://github.com/hubcarl/egg-react-webpack-boilerplate/issues/11","id":298096186,"number":11,"title":"请问如何设定 Ant Design的主题颜色？","user":{"login":"zlxu1984","id":24378336,"avatar_url":"https://avatars1.githubusercontent.com/u/24378336?v=4","gravatar_id":"","url":"https://api.github.com/users/zlxu1984","html_url":"https://github.com/zlxu1984","followers_url":"https://api.github.com/users/zlxu1984/followers","following_url":"https://api.github.com/users/zlxu1984/following{/other_user}","gists_url":"https://api.github.com/users/zlxu1984/gists{/gist_id}","starred_url":"https://api.github.com/users/zlxu1984/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zlxu1984/subscriptions","organizations_url":"https://api.github.com/users/zlxu1984/orgs","repos_url":"https://api.github.com/users/zlxu1984/repos","events_url":"https://api.github.com/users/zlxu1984/events{/privacy}","received_events_url":"https://api.github.com/users/zlxu1984/received_events","type":"User","site_admin":false},"labels":[{"id":641274600,"url":"https://api.github.com/repos/hubcarl/egg-react-webpack-boilerplate/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-18T16:09:51Z","updated_at":"2018-05-22T04:46:39Z","closed_at":null,"author_association":"NONE","body":"想使用Ant Design控件，但是[官方文档](https://ant.design/docs/react/customize-theme-cn)两种方法试着配了下都没有用，能否提供具体的配置方法？"},"comment":{"url":"https://api.github.com/repos/hubcarl/egg-react-webpack-boilerplate/issues/comments/390861412","html_url":"https://github.com/hubcarl/egg-react-webpack-boilerplate/issues/11#issuecomment-390861412","issue_url":"https://api.github.com/repos/hubcarl/egg-react-webpack-boilerplate/issues/11","id":390861412,"user":{"login":"hubcarl","id":4983042,"avatar_url":"https://avatars2.githubusercontent.com/u/4983042?v=4","gravatar_id":"","url":"https://api.github.com/users/hubcarl","html_url":"https://github.com/hubcarl","followers_url":"https://api.github.com/users/hubcarl/followers","following_url":"https://api.github.com/users/hubcarl/following{/other_user}","gists_url":"https://api.github.com/users/hubcarl/gists{/gist_id}","starred_url":"https://api.github.com/users/hubcarl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubcarl/subscriptions","organizations_url":"https://api.github.com/users/hubcarl/orgs","repos_url":"https://api.github.com/users/hubcarl/repos","events_url":"https://api.github.com/users/hubcarl/events{/privacy}","received_events_url":"https://api.github.com/users/hubcarl/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T04:46:39Z","updated_at":"2018-05-22T04:46:39Z","author_association":"OWNER","body":"参考这个问题的解决办法：https://github.com/beijipc/easy-react-spa-ssr\r\n\r\n\r\n- webpack.config.js 配置\r\n\r\nless: {\r\n      options: {\r\n        modifyVars: theme,\r\n        javascriptEnabled: true\r\n      }\r\n    }\r\n\r\n- babelrc\r\n\r\n[\"import\", [{ \"libraryName\": \"antd\", \"style\": true }]]改成\r\n[\"import\", [{ \"libraryName\": \"antd\", \"style\": \"true\" }]]\r\n\r\n-  引入样式\r\n// 按需引入\r\nimport 'antd/lib/button/style/index.less'\r\n// 全局引入\r\nimport 'antd/dist/antd.less'\r\n\r\n\r\n"}}
{"actor":{"display_login":"hubcarl"}}