1 decade ago by alexandre
Not sure why but bake.sh just started inserting a BOM (byte order mark) character in my project's game.min.js file, always at the same point (baked portion for one of the game's level files), making it unloadable by Chrome and other clients, who then report an Unexpected token ILLEGAL error.
Editing main.js, removing all references to the level the BOM seems to target, and rebaking merely shifts the BOM to another place in game.min.js
Editing game.mini.js and removing the problematic character (0xFEFF) fixes the problem. The game can then be loaded. But that's not a solution.
Any advice much appreciated.
Editing main.js, removing all references to the level the BOM seems to target, and rebaking merely shifts the BOM to another place in game.min.js
Editing game.mini.js and removing the problematic character (0xFEFF) fixes the problem. The game can then be loaded. But that's not a solution.
Any advice much appreciated.