unity 发布WebGL报错:Unable to parse Build/*.framework.js.gz! This can happen if build compression was en

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档

文章目录


前言

原著链接:

报错:Unable to parse Build/*.framework.js.gz! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header “Content-Encoding: gzip” present. Check browser Console and Devtools Network tab to debug.
在这里插入图片描述
解决方法,在Unity的WebGL Player Settings中的Publishing settings选项卡中,把Decompression Fallback 选项勾上即可
打过的包要删除,而不是覆盖,否则依然会报这个错
在这里插入图片描述

总结

记录一下

猜你喜欢

转载自blog.csdn.net/qq_37524903/article/details/139066847