kkemple / primus-webpack-plugin

Build client side primus script and add to build assets 📦⚡
MIT License
7 stars 10 forks source link

How to incorporate client code in webpack bundle? #5

Open newhouse opened 6 years ago

newhouse commented 6 years ago

Hi there, and thanks for your work on this package!

I'm trying to figure out how to take the "client" code output that your example produces and actually be able to use it in my webpack bundle.

I'd ultimately like to be able to so something like this in my web application:

...
const primus = new Primus(...);
primus.on(...);
...

I did not understand the part about "shimming" that you mentioned when I read the docs that the link points to.

Thanks for any help you can provide!