Answer the question
In order to leave comments, you need to log in
How to use npm plugin?
I have such a question, if I install this plugin in npm https://chmln.github.io/flatpickr/getting-started/ then how can I use it in the project. More precisely, how should I call it at all if I do not have webpack. I only use cdn but don't want to call cdn all the time in my code. Or does npm need webpack?
Answer the question
In order to leave comments, you need to log in
Well, sometimes you can just write
<script src="./node_modules/plugin/index.js"></script>
, but not the fact that it will burn out with this particular package. Plus, there are still reasons why people stop including scripts manually and use webpack. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question