realtux / mbox

MaterializeCSS Compatible Alert, Confirmation, and Custom Boxes
24 stars 7 forks source link

Add mbox to npm registry #11

Open kounelios13 opened 6 years ago

kounelios13 commented 6 years ago

Hello.I've been using mbox in some of my projects and I was wondering if it would be possible to publish mbox as an npm package

realtux commented 6 years ago

I've never used npm for things other than node.js modules. How does npm for web stuff work?

kounelios13 commented 6 years ago

You just install the packages you want.It will install whatever you want into the node_modules .Then in your html file you can link to mbox folder insidenode_modules like this:

<head>
  <script src="./node_modules/mbox-maker/mbox.min.js"></script>
</head>
kounelios13 commented 6 years ago

I think that you can add materialize-css as a dependency too