dmitrizzle / chat-bubble

Simple chatbot UI for the Web with JSON scripting 👋🤖🤙
MIT License
579 stars 171 forks source link

How to use this with npm #42

Closed sksbtps closed 7 years ago

sksbtps commented 7 years ago

Now, In documentation, using script tag one can include the file. But, how to use it when this is installed via npm?

dmitrizzle commented 7 years ago

Thanks for bringing this up @sksbtps I've used this with Bower in Rails but I'd be happy to leave an example in doc for NPM. I think it'll be as simple as import Bubbles from "chat-bubble"

Are yo planning to use it with Webpack? If you let me know your setup I can tailor the example to your use.

sksbtps commented 7 years ago

It was just a matter of calling/loading Bubbles.js. So, It's fine now.