liabru / matter-js

a 2D rigid body physics engine for the web ▲● ■
MIT License
16.37k stars 1.95k forks source link

How to add plugins via npm? #314

Closed cmalven closed 7 years ago

cmalven commented 7 years ago

None of the Matter.js plugins are included in the matter-js bundle installed via npm, and these plugins don't seem to have their own packages on npm, so how are we expected to install and use plugins with webpack/browserify + npm?

liabru commented 7 years ago

Just finishing work on the plugin boilerplate first, then plugins will have their own separate packages. Hopefully this weekend!

In the meantime, try making a local copy and then change the reference when they are released.

liabru commented 7 years ago

These plugins are now fully packaged!

Also check out the matter-plugin-boilerplate.