Browse Source

Added uglify

TitanNano-voice_recorder
Igor Zhukov 11 years ago
parent
commit
21d2be8658
  1. 6
      app/js/lib/mtproto.js
  2. 2
      gulpfile.js
  3. 3
      package.json

6
app/js/lib/mtproto.js

@ -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) {

2
gulpfile.js

@ -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'));

3
package.json

@ -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…
Cancel
Save