84669 人が学習中
152542 人が学習中
20005 人が学習中
5487 人が学習中
7821 人が学習中
359900 人が学習中
3350 人が学習中
180660 人が学習中
48569 人が学習中
18603 人が学習中
40936 人が学習中
1549 人が学習中
1183 人が学習中
32909 人が学習中
今天搭建react-antd脚手架,想用webpack的externals引用cdn的方式 减少本地代码大小,引用react时候没有问题
但是引用antd时候报错,求问 什么原因,我认为可能是antd依赖了其他插件导致的问题,我引用的是bootstrap的cdn问题报错
找不到ant。
ringa_lee
引用了 CDN 就不要再使用 babel-plugin-import,而且 antd 本身也要 externals 才对。
babel-plugin-import
antd
引用了 CDN 就不要再使用
babel-plugin-import
,而且antd
本身也要 externals 才对。