Answer the question
In order to leave comments, you need to log in
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?
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question