-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Building WebGL and deploying to GitHub Pages isn't working because gzip compression is enabled.
Tried to run your gh-pages branch from https://yanniboi.github.io/game-ci-test/ and console throws the following error.
WebGL.framework.js.gz:1 Uncaught SyntaxError: Invalid or unexpected token
WebGL.loader.js:1 Uncaught ReferenceError: unityFramework is not defined
at HTMLScriptElement.n.onload (WebGL.loader.js:1:3028)
...I think we need a server configuration in order to make gzip compression work from GH Pages by adding Content-Encoding: gzip to .gz files.
This recent docs link shows code samples to do that, but I'm not sure it is supported for GH Pages.
https://docs.unity3d.com/2021.2/Documentation/Manual/webgl-server-configuration-code-samples.html
Any ideas on how to make gzip compression work with GH Pages and Unity WebGL?
Thanks in advance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels