I'm using gulp-terser to minify js files. I have a jquery file and a custom js file. When I try to run the task, the custom js code is at the beginning of the jquery file. I've tried using gulp-order with it, but still no luck. Here's the code i'm using:
gulp.task('build-js', function () {
return gulp.src(["src/js/jquery.min.js","src/js/zinv.js"])
.pipe(concat('inv.min.js'))
.pipe(terser())
.pipe(gulp.dest('./js'));
});
thanks in advance.