diff --git a/js/app.build.js b/js/app.build.js index c2136155..22b1eb2a 100644 --- a/js/app.build.js +++ b/js/app.build.js @@ -3,13 +3,19 @@ baseUrl: "js/", dir: "../dist", - optimize: "none", + //optimize: "none", modules: [ { name: "jquery.mobile", - include: [ "almond" ], - exclude: [ "jquery", "order" ] + exclude: [ "jquery" ] }, - ] -}) \ No newline at end of file + ], + + wrap: { + start: "(function() {", + end: '\nif ( typeof define === "function" && define.amd ) {\ndefine( "jquery.mobile", [], function () { return jQuery.mobile; } );\n}\n}());' + }, + + dirExclusionRegExp: /^build|^compiled|^external|^tests/ +})