arco-design-pro icon indicating copy to clipboard operation
arco-design-pro copied to clipboard

本地运行正常,打包后css没被引入,也无法找到打包构建相关文档

Open liwenlongepipechina opened this issue 2 years ago • 2 comments

Basic Info

What are the similar cases of this feature

本地开发完后,打包不成功的现象

What problem does this feature solve?

希望可以出一份打包构建相关文档

liwenlongepipechina avatar Aug 12 '22 03:08 liwenlongepipechina

我的也出现了,开发环境正常,打包后,index.html是没有引入任何css和脚本的,请问怎么回事? image

pionear-layen avatar Mar 20 '23 15:03 pionear-layen

同样的问题 : 打包无报错,构建好部署后, 网站访问也无报错,但是首页样式丢失。

注:
  • dev 模式下一切正常
  • arco-cli 创建的 create-react-app 项目
  • "arco-design-pro": "^2.8.0", err

类似问题

启动后没有样式

已检查 2.8.0 版本下这个bug已经修复,现在无法确认是什么问题。

已解决

原因: nginx css文件需返回此类型才会被识别: Content-Type: text/css location 中 加1行 default_type text/css; 即可识别css

zwww7766 avatar Aug 12 '23 16:08 zwww7766