mix dic_ex.install (dicEx v0.3.0)

Copy Markdown View Source

Copies the dicEx prebuilt assets into the host Phoenix application's assets/vendor and assets/css directories so they bundle into app.js / app.css, and prints the wiring snippet.

mix dic_ex.install

Phoenix 1.8+ only serves app.js / app.css from the bundle, so dicEx's assets must be imported rather than referenced via external <script> tags. Run this inside your Phoenix app after adding :dic_ex to your dependencies. Re-run it after upgrading dicEx so the vendored JS matches the component.

Two bundles are copied: dic_ex.min.js (both engines, ~2.7 MB because it embeds Three.js and Rapier) and dic_ex_2d.min.js (2D engine only, a few KB). Import just one of them.