gulp-terser
const gulp = require('gulp');
const terser = require('gulp-terser');
function jsTask () {
return src("./src/js")
.pipe(sourcemaps.init())
.pipe(concat('all.js'))
.pipe(terser())
.pipe(sourcemaps.write('.'))
.pipe(dest('dist/js/'))
}