mix phoenix_assets.install (PhoenixAssets v0.1.0)

View Source

Installs and configures phoenix_assets in a Phoenix application.

mix igniter.install phoenix_assets
mix phoenix_assets.install

Configures :phoenix_assets (otp_app, endpoint, router) from the project's Phoenix conventions, enables the development runtime, and scaffolds the frontend entry files (assets/vite.config.ts, assets/src/app.css).

The runtime is added to a host supervision tree by appending PhoenixAssets.child_specs/0 -- a list, not a single child -- so that step, the npm install, and your stack contracts are printed as next steps rather than patched blindly into your application.ex.