31st October, 2013

Cordova/PhoneGap and RequireJS on Windows Phone 8

Cordova/PhoneGap and RequireJS both contain:

define
require

Basically RequireJS won't import dependencies without uglifying your JavaScript into one file including RequireJS (or another loader such as Almond).

I've posted an example RequireJS build config file here. It assumes your main module is called bootstrap.

Hopefully this will help you.

 

Add Comment

The opinions expressed here are my own and not those of my employer.