Added uglify

This commit is contained in:
Igor Zhukov 2014-03-26 14:54:03 +04:00
parent 0ca4a721ea
commit 21d2be8658
3 changed files with 7 additions and 4 deletions

View File

@ -997,7 +997,9 @@ factory('MtpRsaKeysManager', function () {
};
}).
service('MtpSecureRandom', SecureRandom).
service('MtpSecureRandom', function () {
return new SecureRandom();
}).
factory('MtpMessageIdGenerator', function (AppConfigManager) {
var lastMessageID = [0, 0],
@ -2475,7 +2477,7 @@ factory('MtpApiManager', function (AppConfigManager, MtpAuthorizer, MtpNetworker
AppConfigManager.set({dc: baseDcID = newDcID});
}
mtpGetNetworker(newDcID).then(function (networker) {
mtpGetNetworker(newDcID, options).then(function (networker) {
networker.wrapApiCall(method, params, options).then(function (result) {
deferred.resolve(result);
}, function (error) {

View File

@ -21,7 +21,7 @@ gulp.task('usemin', ['templates', 'enable-production'], function() {
return gulp.src('app/index.html')
.pipe($.usemin({
html: [$.minifyHtml({empty: true})],
js: ['concat', $.rev()],
js: [$.ngmin(), $.uglify(), 'concat', $.rev()],
css: [$.minifyCss(), 'concat']
}))
.pipe(gulp.dest('dist'));

View File

@ -32,6 +32,7 @@
"gulp-grep-stream": "0.0.2",
"event-stream": "^3.1.0",
"gulp-zip": "^0.1.2",
"gulp-manifest": "0.0.3"
"gulp-manifest": "0.0.3",
"gulp-ngmin": "~0.1.2"
}
}