1 decade ago by Joncom
The following works just fine.
However, when baking the game I get the error:
Is there a way to prevent the requires process from loading something based on a variable like
Editted for clarity.
.requires(
'impact.game',
'impact.font',
// Load certain mobule if on mobile.
( ig.ua.mobile ? 'game.mobile-module' : 'impact.game' ),
....
However, when baking the game I get the error:
ERROR: Couldn't load lib/(!ig/ua/mobile?game/mobile........etc.
Is there a way to prevent the requires process from loading something based on a variable like
ig.ua.mobile and be able to still bake it?Editted for clarity.
