arco-design-pro
arco-design-pro copied to clipboard
本地运行正常,打包后css没被引入,也无法找到打包构建相关文档
- [ ] I'm sure this does not appear in the issue list of the repository
Basic Info
What are the similar cases of this feature
本地开发完后,打包不成功的现象
What problem does this feature solve?
希望可以出一份打包构建相关文档
我的也出现了,开发环境正常,打包后,index.html是没有引入任何css和脚本的,请问怎么回事?
同样的问题 : 打包无报错,构建好部署后, 网站访问也无报错,但是首页样式丢失。
注:
- dev 模式下一切正常
- arco-cli 创建的 create-react-app 项目
-
"arco-design-pro": "^2.8.0",
类似问题
已检查 2.8.0 版本下这个bug已经修复,现在无法确认是什么问题。
已解决
原因: nginx css文件需返回此类型才会被识别: Content-Type: text/css
location 中 加1行 default_type text/css;
即可识别css