arco-design / arco-design-pro

An out-of-the-box solution to quickly build enterprise-level applications based on Arco Design.
https://pro.arco.design
MIT License
460 stars 91 forks source link

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

Open liwenlongepipechina opened 2 years ago

liwenlongepipechina commented 2 years ago

Basic Info

What are the similar cases of this feature

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

What problem does this feature solve?

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

pionear-layen commented 1 year ago

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

image
zwww7766 commented 1 year ago

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

注:

类似问题

启动后没有样式

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

已解决

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