Closed sfyr111 closed 5 years ago
style: true
import DatePicker from 'antd-mobile/lib/date-picker'; // 加载 JS import 'antd-mobile/lib/date-picker/style/css'; // 加载 CSS // import 'antd-mobile/lib/date-picker/style'; // 加载 LESS 手动引入不显示
@sfyr111 @liuchonggao https://github.com/hubcarl/egg-react-webpack-boilerplate/issues/11
// .babelrc or babel-loader option { "plugins": [ ["import", { libraryName: "antd-mobile", style: "css" }] //
style: true
会加载 less 文件 ] } 推荐配置报错import DatePicker from 'antd-mobile/lib/date-picker'; // 加载 JS import 'antd-mobile/lib/date-picker/style/css'; // 加载 CSS // import 'antd-mobile/lib/date-picker/style'; // 加载 LESS 手动引入不显示