哦哦, 我现在就想加上面的两句话到webPack.config.js 里,刚一直找不到文件,这个任务是完成了,真是感谢了,以后的项目还是要考虑手动配置的;
还有下面这个配置代码要写在哪里您知道吗?
babel-plugin-import 配置,
// .babelrc
{"plugins": [["import", { "style": "css", "libraryName": "antd-mobile" }]]}
// or webpack config file
webpackConfig.babel.plugins.push(['import', { libraryName: 'antd-mobile', style: 'css' }]);