Added uglify
This commit is contained in:
parent
0ca4a721ea
commit
21d2be8658
@ -997,7 +997,9 @@ factory('MtpRsaKeysManager', function () {
|
|||||||
};
|
};
|
||||||
}).
|
}).
|
||||||
|
|
||||||
service('MtpSecureRandom', SecureRandom).
|
service('MtpSecureRandom', function () {
|
||||||
|
return new SecureRandom();
|
||||||
|
}).
|
||||||
|
|
||||||
factory('MtpMessageIdGenerator', function (AppConfigManager) {
|
factory('MtpMessageIdGenerator', function (AppConfigManager) {
|
||||||
var lastMessageID = [0, 0],
|
var lastMessageID = [0, 0],
|
||||||
@ -2475,7 +2477,7 @@ factory('MtpApiManager', function (AppConfigManager, MtpAuthorizer, MtpNetworker
|
|||||||
AppConfigManager.set({dc: baseDcID = newDcID});
|
AppConfigManager.set({dc: baseDcID = newDcID});
|
||||||
}
|
}
|
||||||
|
|
||||||
mtpGetNetworker(newDcID).then(function (networker) {
|
mtpGetNetworker(newDcID, options).then(function (networker) {
|
||||||
networker.wrapApiCall(method, params, options).then(function (result) {
|
networker.wrapApiCall(method, params, options).then(function (result) {
|
||||||
deferred.resolve(result);
|
deferred.resolve(result);
|
||||||
}, function (error) {
|
}, function (error) {
|
||||||
|
@ -21,7 +21,7 @@ gulp.task('usemin', ['templates', 'enable-production'], function() {
|
|||||||
return gulp.src('app/index.html')
|
return gulp.src('app/index.html')
|
||||||
.pipe($.usemin({
|
.pipe($.usemin({
|
||||||
html: [$.minifyHtml({empty: true})],
|
html: [$.minifyHtml({empty: true})],
|
||||||
js: ['concat', $.rev()],
|
js: [$.ngmin(), $.uglify(), 'concat', $.rev()],
|
||||||
css: [$.minifyCss(), 'concat']
|
css: [$.minifyCss(), 'concat']
|
||||||
}))
|
}))
|
||||||
.pipe(gulp.dest('dist'));
|
.pipe(gulp.dest('dist'));
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
"gulp-grep-stream": "0.0.2",
|
"gulp-grep-stream": "0.0.2",
|
||||||
"event-stream": "^3.1.0",
|
"event-stream": "^3.1.0",
|
||||||
"gulp-zip": "^0.1.2",
|
"gulp-zip": "^0.1.2",
|
||||||
"gulp-manifest": "0.0.3"
|
"gulp-manifest": "0.0.3",
|
||||||
|
"gulp-ngmin": "~0.1.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user