現象:
報錯文本:
原因:
解決方案:
現象:
打包前,ProjectSetting 壓縮選項設置爲Brotli,
将打包的WebGL部署到阿裏雲OSS環境後,運行彈框提示錯誤.
報錯文本:
Unable to parse Build/WebGL.framework.js.br! This canhappen if build compression was enabled but web serverhosting the content was misconfigured to not serve the filewith HTTP Response Header "Content-Encoding: br"
present.Check browser Console and Devtools Network tabto debug.
無法分析内部版本/ebGL.framework.isbr!如果啓用了生成壓縮,但承載内容的web服務器配置錯誤,無法爲存在HTTP響應标頭“content Encoding:br”的文件提供服務,則可能會發生這種清況。檢查浏覽器控制台和Devtools網絡選項卡以進行調試。
原因:
編碼問題
解決方案:
右鍵設置,将以下3個文件帶br後綴的,添加标頭br