Update use-with-create-react-app.zh-CN.md

This commit is contained in:
agent-z 2018-07-02 17:38:39 +08:00 committed by 偏右
parent 915a64feae
commit 8c156afb39

View File

@ -182,6 +182,7 @@ $ yarn add react-app-rewire-less --dev
- config = injectBabelPlugin(['import', { libraryName: 'antd', style: 'css' }], config);
+ config = injectBabelPlugin(['import', { libraryName: 'antd', style: true }], config);
+ config = rewireLess.withLoaderOptions({
+ javascriptEnabled: true,
+ modifyVars: { "@primary-color": "#1DA57A" },
+ })(config, env);
return config;