Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
644 views
in Technique[技术] by (71.8m points)

antd全局加载样式打包后没有导入样式问题

antd-mobile + react在react入口文件中引入样式打包不生效,但是本地开发是生效的,采用的是全局引入的方式,不是按需加载的方式。
在入口文件是这样写的

import 'antd-mobile/dist/antd-mobile.css'; //?or?'antd-mobile/dist/antd-mobile.less'

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...