Answer the question
In order to leave comments, you need to log in
Why does gulp js work incorrectly?
Good evening.
I have a task for js files.
I am using gulp 4.
gulp.task("js", function () {
return gulp.src('src/assets/js/main.js')
.pipe(sourcemaps.init())
.pipe(babel({
presets: ['@babel/env']
}))
.pipe(sourcemaps.write())
.pipe(gulp.dest('build/assets/js'))
.pipe(browserSync.reload({
stream: true
}));
});
let videoGallery = function () {
$('#js-video-gallery').slick({
arrows: false,
dots: false,
asNavFor: '#js-video-gallery-small'
});
};
videoGallery();
$('#js-video-gallery-small').slick({
arrows: false,
dots: false,
slidesToShow: 5,
slidesToScroll: 1,
asNavFor: '#js-video-gallery',
focusOnSelect: true
});
});
sToShow: 5,
slidesToScroll: 1,
asNavFor: '#js-video-gallery',
focusOnSelect: true
});
});
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3Vy
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