gulpfile.js/tasks/compress-js.js
function compressJS() {
    let tasks = [];

    Object.keys(config.tasks).forEach((key) => {
        let val = config.tasks[key];
        tasks.push(gulp.src(val.src)
            .pipe(plumber({ errorHandler: handleErrors }))
            .pipe(uglify())
            .pipe(rename(config.rename))
            .pipe(gulp.dest(val.dest)));
    });

    return merge(tasks);
}
function compressJS() {
    let tasks = [];

    Object.keys(config.tasks).forEach((key) => {
        let val = config.tasks[key];
        tasks.push(gulp.src(val.src)
            .pipe(plumber({ errorHandler: handleErrors }))
            .pipe(uglify())
            .pipe(rename(config.rename))
            .pipe(gulp.dest(val.dest)));
    });

    return merge(tasks);
}
function compressJS ( ) { let tasks = [ ] ; Object . keys ( config . tasks ) . forEach ( ( key ) => { let val = config . tasks [ key ] ; tasks . push ( gulp . src ( val . src ) . pipe ( plumber ( { errorHandler : handleErrors } ) ) . pipe ( uglify ( ) ) . pipe ( rename ( config . rename ) ) . pipe ( gulp . dest ( val . dest ) ) ) ; } ) ; return merge ( tasks ) ; }
Create minified versions of all JS assets.
Create minified versions of all JS assets .