B
B
bro-dev2017-07-25 12:40:55
JavaScript
bro-dev, 2017-07-25 12:40:55

How to automatically include styles scripts fonts from node_modules?

For example I did

npm i slick-carousel -S
npm i jancybox -S

Ok, everything has downloaded, through webpack I can connect scripts so that it will automatically find all the paths, but how do I do the same with the rest of the content? pictures styles fonts these 2 that I brought have everything.
Is it possible to upgrade the webpack somehow so that the require infection itself connects everything? or are there any other tools for this, otherwise why are these libs in npm at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dummyman, 2017-07-25
@dummyman

Maybe I'm outdated and webpack has become a universal tool, but at first it was used for desktop tasks, for example, in conjunction with electron, which did not suit many people or was simply inconvenient due to the large number of small files in node_modules. And already after, like even quite recently, the entire bower was set to be dragged to npm.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question