1、主包剔除
var Laya = window.Laya = function (window, document) {}(window, document); 【完成】
var ___Laya = function (){}(); 【完成】
2、主包调整 【完成】
Timer$1 = Laya.Timer$1;
VertexArrayObject = Laya.VertexArrayObject;
WebGLContext = Laya.WebGLContext;
System$1 = Laya.System$1;
Cooling = com.Cooling;
TextField = ext.text.TextField;
LayerMgr = game.mgr.LayerMgr;
Bitmap = ext.display.Bitmap;
TextHtml = ext.text.TextHtml;
Util = com.Util;
new Main();
3、主包Image
new Image 修正为 new Laya.Image 【完成】
4、主包
继承 Image 修正为 Laya.Image 【完成】
5、全局类注册过滤 【完成】
6、var img = Pool.getItemByClass("Image", Laya.Image); 【完成】
// 1压缩DEBUG 2分包 3压缩+分包
// let stream = gp.src(config.denugBundle + '/bundle.js').pipe(concat('bundle.min.js')).pipe(uglify(options)).pipe(gp.dest(releasePath));
// gulp.src(CordovaLibDir)
// .pipe(clean())
// .on('error', done)
// .on('data', function () {}) // fix end emit, listen the data
// .on('end', function () {
// console.log('END');
// });
test