コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Unable to parse Build/XXXX.framework.js.gz!

概要

Unable to parse Build/XXXX.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.

WebGL ビルドしたゲームを Web Server for Chrome で起動したら
上記のエラーが発生する現象に遭遇した

Project Settings の「Player > Publishing Settings」の
「Decompression Fallback」をオンにしてからビルドしたらエラーが発生しなくなった