How to use externals to include external CDN based lib?
It is not an issue, just don't know how to do it. No index.html or any html to edit, all js files. My question is if I want to load a vendor js lib from cloud, how to do I do that?
It would be easy to do that in a html file.
However, in js file, it only uses npm installed packages. How can I import the above lib with no html file? I tried import and require, they only work for local files.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
You should be able to add these external refs in src/components/Html/Html.js.
Yes, it works now using Html.js
I know this is old, but what is the best way to do this? Ive got a cdn based version of jquery I need to bring in
Everything Ive tried to so far gives " ReferenceError: document is not defined"
@jma7889 thank you very much for crating this issue! Unfortunately, we have close it due to inactivity. Feel free to re-open it or join our Discord channel for discussion.
NOTE: The main branch has been updated with React Starter Kit v2, using JAM-style architecture.