R
R
Raym0NT2022-01-05 17:13:54
CDN
Raym0NT, 2022-01-05 17:13:54

What is the best way to connect library files to html and how is cdn different from connecting via npm?

What is the best way to connect library files to html and how is cdn different from connecting via npm?
What are the differences and advantages of connecting files in different ways?
Does it make sense to use the library connection via npm, and what is its advantage?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kulakov, 2022-01-06
@ivankprod

It's simple: if you use a build system (like Webpack), then you most likely need npm.
If you just need to include js code in the page, then use CDN.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question