J
J
jww2018-10-12 23:38:15
Layout
jww, 2018-10-12 23:38:15

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

2 answer(s)
I
Interface, 2018-10-12
@Interface

common-js / es6 modules, webpack

V
Vladimir Obabkov, 2018-10-13
@Enroller

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 question

Ask a Question

731 491 924 answers to any question