F
F
FFF QQQ2020-08-13 19:59:23
gulp.js
FFF QQQ, 2020-08-13 19:59:23

How to connect script from node modules to Gulp?

There is a gallp assembly that produces one compressed js file at the output. I ran into such a problem that I need to connect Slick Slider from node modules, but I don’t know how to change the task in the gallp.
I rewrote it like this, but it gives only a slick slider at the output, but the main one doesn’t and adds .min.js to the script, as a result, .min.js is written twice in the name of the slick slider.

How to write correctly so that there is both a main compressed js file and a script from node modules?

spoiler
5f357136efd83487298209.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aleks_web_dev, 2020-08-13
@aleks_web_dev

in the src array, add the path to the file where you have the slickslider config or the main js file like
gulp.src
([
'./node_modules/jquery/dist/jquery.min.js',
./'node_modules'/slick-carousel/slick /slick.min.js
'./src/js/app.js',
])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question