Answer the question
In order to leave comments, you need to log in
Why doesn't gulp merge bower lists in order?
I have bower.json with dependencies:
"dependencies": {
"jquery": "~2.1.4",
"jquery.cookie": "~1.4.1",
"bootstrap": "~3.3.5",
...
var vendors = mainBowerFiles();
gulp.src(vendors)
.pipe(filter('**.js'))
.pipe(order(vendors))
.pipe(uglify())
.pipe(concat('bower.min.js'))
.pipe(gulp.dest('static/'));
Answer the question
In order to leave comments, you need to log in
Might be worth breaking it down into separate tasks:
The order can be written instead of the entire "vendors" folder in this way:
return gulp.src(['./lib/file3.js', './lib/file1.js', './lib/file2.js'])
I did exactly that.
Plugin: gulp-concat
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question