Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question