I am using a vuejs npm package in my application. For some reasons, I need to use with cdn url directly so let's suppose this is the cdn lib https://cdn.jsdelivr.net/npm/my-package@1.1.0/dist/my-package.umd.min.js. Now I don't know how to use that in vue application.
Any help would be appreciated. Thanks:)
I understand your problem perfectly and I will answer about your question.
In vue project, there is html page that shows to clients finally.
This is original html page, so it has header and body tag.
In header tag, as you can see, there are script and link .
Then you want to use other urls, you can input this url using <script> tag.
This is sample below.
<script src="https://cdn.jsdelivr.net/npm/my-package@1.1.0/dist/my-package.umd.min.js"></script>