官方文档:https://docs.unity3d.com/Manual/webgl-deploying.html
问题:You can reduce your startup time if you configure your web server to host .unityweb files using gzip compression.
官方只给了ISS服务器和Apache服务器,关于nginx服务器没有说。
一、本地搭建nginx服务器:
学习文档:
https://www.jianshu.com/p/ceb2cc9ae429
1)出错解决:nginx: [error] CreateFile() "C:\nginx-1.17.1\nginx-1.17.1/logs/nginx.pid" failed (2: The system cannot find the file specified)
原因:nginx服务器没有启动,就reload必然失败。