There are four js file: two sided, two written by hand. The speed of minification of the target file is always the same - 20 seconds how you can reduce?
That's the part of the code in helpfile:
var gulp = require("gulp"), concat = require("gulp-concat"), uglify = require("gulp-uglifyjs"); gulp.task("auto-scripts", function() { return gulp.src([ "app/public/vendors/jquery/jquery.min.js", "app/public/vendors/ckeditor/ckeditor.js" ]) .pipe(concat("auto-scripts.js")) .pipe(gulp.dest("app/public/meta/js")) }) gulp.task("hand-scripts", function() { return gulp.src([ "app/public/js/application.js", "app/public/meta/js/script.js" ]) .pipe(concat("hand-scripts.js")) .pipe(gulp.dest("app/public/meta/js")) }); gulp.task("scripts", ["auto-scripts", "hand-scripts"], function() { return gulp.src([ "app/public/meta/js/auto-scripts.js", "app/public/meta/js/hand-scripts.js" ]) .pipe(concat("scripts.min.js")) .pipe(uglify()) .pipe(gulp.dest("app/public/meta/js")) });