HTML5 404 Error (and large file sizes?)
I have a new 4.16 project with no starter content under the "blank" template. I made a new blank map and set that as the default map.
I run the HTML5 packaging option and end up with a build like so:
Running the HTML5LaunchHelper.exe and opening localhost in chrome results with this error
My chrome version is up to date (Version 59.0.3071.86 (Official Build) (64-bit)) What am I supposed to do here?
Bonus question, why is my build so huge for a project with nothing in it?
asked Jun 15 '17 at 04:30 PM in Packaging & Deployment
Try doing a build that targets WebAssembly. That will replace the .asm.js file with a much smaller .wasm file. Also enable gzip compression of the .wasm file to serve a .wasm.gz file which should come down to about 10MB.
The .data file however depends on the content of your project. Perhaps the template has that UE4 starter content in it, which contains lots of assets that the template doesn't need but which are provided for playing around purposes. There should be a checkbox somewhere with "include starter content" or similar.
There should also be an option to compress the .data file. You can try gzip compressing the file to check if it is already compressed (if it is compressed, then gzip compressing again doesn't reduce file size further)
Check out the .html file, and in particular the part "const serveCompressedAssets = true;". If you don't have .gz compressed assets, then set that flag to false.
answered Jun 15 '17 at 07:33 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here