A
A
Anton2017-01-12 09:06:53
gulp.js
Anton, 2017-01-12 09:06:53

How to set up gulp-order so that jquery comes first?

Good morning!
Help setting up gulp-order.
Is it possible that gulp-order would form the order from bower.json -> dependencies?
Or tell me how to set this order easier?

"dependencies": {
    "jquery": "^3.1.1",
    "bootstrap": "^3.3.7",
    "vue": "^2.1.8"
  }

gulp.task('vendors', function () {
    return gulp.src(mainBowerFiles())
        .pipe(filter('**/*.js'))
        .pipe(order())
        .pipe(concat('vendor.js'))
        .pipe(gulp.dest('app/theme/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