Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luo哥好,小弟再请教个问题,您方便的时候给解答下! #4

Closed
wangjunwei910208 opened this issue Sep 6, 2017 · 3 comments

Comments

@wangjunwei910208
Copy link

这个框架里面引入了ant design,我在使用的时候想换主题,但一直没有成功,请指教。万分感谢

@javaLuo
Copy link
Owner

javaLuo commented Sep 7, 2017

额 还没弄过
我研究研究

@javaLuo
Copy link
Owner

javaLuo commented Sep 7, 2017

我更新过代码了
4个文件有修改

1 .babelrc
2 package.json
3 webpack.dev.config.js
4 webpack.production.config.js


1 你可以直接复制现在新的webpack.dev.config.js和webpack.production.config.js
2 .babelrc 中只是把"style":"css" 改为了 “style”:true
3 package.json中添加了"theme"字段,可以在这个字段中根据antd的文档自定义主题。
也可以专门写个theme.js文件,然后package.json中的theme字段指向them.js文件的路径。

@wangjunwei910208
Copy link
Author

谢谢 luo哥 已解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants