typescript 2.9.x +webpack 4.16.x + react 16.4.x

2018-08-21
阅读 7 分钟
2.3k
typescript 2.9.x +webpack 4.16.x + react 16.4.x 从零开始,配置简单可自由更改,按需加载antd 3.8的组件,包括样式前言: 由于网上找不到typescript结合react,并按需加载antd的教程,于是开始踩坑。该过程中发现 1 “cannot resolve module 'antd'” (tsconfig 中设置moduleResolution: "node”,告诉webpack去相应的n...