A
A
ArtJH2020-07-11 11:31:25
gulp.js
ArtJH, 2020-07-11 11:31:25

How in Gulp after assembly, put the downloaded plugins / libraries into the lib folder, in which there will be folders with plugins?

Now my code collects the downloaded libraries into one lib.min.js file.
And I need it to simply move each library to the lib folder

gulp.task('js', function(){
  return gulp.src([
    'node_modules/jquery/dist/jquery.js',
    'node_modules/slick-carousel/slick/slick.js',
    'node_modules/swiper/dist/wow.js',
  ])
    .pipe(concat('libs.min.js'))
    .pipe(uglify())
    .pipe(gulp.dest('app/js'))
    .pipe(browserSync.reload({stream: true}))
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
inkShio, 2020-07-11
@inkShio

do a separate task where you will simply copy the libraries to your folder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question