Answer the question
In order to leave comments, you need to log in
How to use plugins installed via NPM?
Good day. I installed Slick slider via NPM, a folder was created in node_modules, but what about in production? I don’t want to upload the entire node_modules folder to the hosting, but I also don’t want to manually delete unnecessary folders. What is usually done in such a situation? Until recently used Bower.
Answer the question
In order to leave comments, you need to log in
In your case, you just need to put the JavaScript of the slider code into your JS file.
For this .
And rebuild the project to make it work. @import
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question