Gulp.js
- 1 ответ
- 0 вопросов
1
Вклад в тег
npm i swiper
gulp
function vendorJS() {
const modules = [
'node_modules/swiper/swiper-bundle.min.js',
'node_modules/swiper/swiper-bundle.min.js.map',
];
return src(modules)
.pipe(dest('build/js'));
};
function vendorCSS() {
const modules = [
'node_modules/swiper/swiper-bundle.min.css',
];
return src(modules)
.pipe(dest('build/css/pages'));
};
//- swiper styles
link(rel="stylesheet" type="text/css" href="./css/pages/swiper-bundle.min.css")
//- swiper js
script(src='./js/swiper-bundle.min.js')