Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question