Your uglify task is probably choking on one of the files it is trying to process. Handle the error and write the output to the console so that you can see which file is causing the task.
gulp.task('scripts', ['clean'], function () { return gulp.src('js/*.js') .pipe(uglify().on('error', function(e){ console.log(e); })) .pipe(gulp.dest('minjs')); });
When you run the gulp task again, you will still receive an error message, but this time, right to the top of the output, you will see the file and line number that uglify has processing problems. Debugging from there.
Maybe this is a syntax error? Correct it and try again.
Perhaps you have a strange _reference.js file with unexpected characters similar to the ones you see in Visual Studio projects? Exclude it from gulp.src and try again.
bingo 08 Oct '15 at 3:39 on 2015-10-08 03:39
source share