function build(src, type, config) {
    return gulp.src(src)
        .pipe(plumber())
        .pipe(flatten())
        .pipe(replace(comments.license.in, comments.license.out))
        .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
        .pipe(gulp.dest(config.paths.output.uncompressed))
        .pipe(print(log.created))
        .pipe(uglify(settings.uglify))
        .pipe(rename(settings.rename.minJS))
        .pipe(header(banner, settings.header))
        .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
        .pipe(gulp.dest(config.paths.output.compressed))
        .pipe(print(log.created));
}
Concat and uglify the JavaScript files
@param {string|array} src - source files
@param type
@param config
@return {*}