How to use script tags to introduce the opensea-js library in pure HTML/JS?
P粉491421413
P粉491421413 2023-09-02 16:44:01
0
1
447

I want to use opensea-js in my html/js project, but their source code is only published on github and npm. https://github.com/ProjectOpenSea/opensea-js

How can I use this in normal html? (Not a page based on node.js)

I found something here

https://www.jsdelivr.com/package/npm/opensea-js

But after I put this code into my html it doesn't work.

P粉491421413
P粉491421413

reply all (1)
P粉311423594

I strongly recommend usingbabelorwebpack. No matter which one you choose, there's a steep learning curve, so you should start using one while you're at it rather than developing bad habits later.

Using babel/webpack has many advantages over using CDN. Refer to this article (it also works with babel):https://webpack.js.org/concepts/why-webpack/

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!