E
E
egsi2018-10-01 13:35:04
gulp.js
egsi, 2018-10-01 13:35:04

What could be causing the compilation error?

When processing multiple js files, gulp throws an error
gulp-uglifyjs - UglifyJS threw an error
Unexpected token: operator (>)
internal/streams/legacy.js:59
throw er; // Unhandled stream error in pipe.
Here is the gulpfile itself

gulp.task('scripts', function() {
  return gulp.src([
    'js/1.js',
    'js/2.js',
                'js/3.js',
    ])
    .pipe(concat('libs.min.js')) 
    .pipe(uglify())
    .pipe(gulp.dest('/dist/js'));
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question