box2d.js icon indicating copy to clipboard operation
box2d.js copied to clipboard

How does this work with webpack?

Open Erfa opened this issue 4 years ago • 1 comments

I've tried to import this with webpack, but as far as I can tell there is no package.json? What is the intended way to bundle this with the rest of your app?

Erfa avatar Feb 24 '21 19:02 Erfa

I'm not sure the intended way, but we dropped the minified file into our source folder and added something like export default Box2D; in order to get it webpacked. Not the cleanest, but it works 😬.

probityrules avatar Mar 08 '21 17:03 probityrules