J
J
Jumandjilos2018-06-15 18:33:51
Node.js
Jumandjilos, 2018-06-15 18:33:51

How to style and script npm modules?

I installed the module, it was saved in the node_modules folder, in this module I need to include styles and scripts, but I heard that specifying the path to node_modeules/.... is a bad practice, how can I do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2018-06-15
@SagePtr

Add some kind of collector, which will collect all used scripts and styles into one file. For example webpack.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question