Closed amiezhang closed 5 years ago
antd和react应该是一样的,应该是与外部的一致,不应该发包的时候带上node_modules/antd
现在这种模式,导致编辑器的antd版本和yapi的antd版本不一致,icon出现2个
把antd放在devDependencies,antd就不会让依赖包带上,node_modules/antd
antd和react应该是一样的,应该是与外部的一致,不应该发包的时候带上node_modules/antd
出现问题
现在这种模式,导致编辑器的antd版本和yapi的antd版本不一致,icon出现2个![image](https://user-images.githubusercontent.com/15716269/53867579-1ca92b00-402f-11e9-9915-d10817a1e4de.png)
解决方案
把antd放在devDependencies,antd就不会让依赖包带上,node_modules/antd![image](https://user-images.githubusercontent.com/15716269/53867945-d6a09700-402f-11e9-8c9b-a5d021016e1d.png)