Jump to content

CDN and NPM install


Recommended Posts

For those who have not noticed yet, since with version 7.0.0, melonJS is now officially available through NPM, it means as well that the latest build of melonJS can now install through NPM or/and available through the jsdeliver CDN.

for NPM :

$ npm install melonjs


For delivery through jsdelivr content delivery network (CDN) URL  :

<script src="https://cdn.jsdelivr.net/npm/melonjs@7.0.0/dist/melonjs.js"></script>

or the following for the minified version :

<script src="https://cdn.jsdelivr.net/npm/melonjs@7.0.0/dist/melonjs.min.js"></script>

and of course the debug panel :

<script src="https://cdn.jsdelivr.net/npm/melonjs@7.0.0/plugins/debug/debugPanel.js"></script>

 


Note: "official" CDN and NPM install are only available from version 7.0.0 and onwards.

 

Link to post
Share on other sites
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...