I am trying to minify my script files for which i am using gulp task runner And I am trying gulp-uglify plugin
Code:
gulp.task(\'concat\', function() {
For me, it was a deprecated option "preserveComments" that generated the error (and completely crashed the script).
Found the issue using:
gulp.task('concat', function() {
return gulp.src('app/**/*.js')
.pipe(uglify())
.on('error', function (err) { console.log( err ) })
.pipe(gulp.dest('./dist/'))
});