# `PhoenixKit.Install.AssetRebuild`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.87/lib/phoenix_kit/install/asset_rebuild.ex#L1)

Handles asset rebuilding for PhoenixKit installations and updates.

This module provides asset rebuilding using the standard Phoenix asset pipeline.
It tries multiple build commands in order of preference:

1. `mix assets.build` - Phoenix 1.8+ standard asset pipeline
2. `mix esbuild default --minify` - Individual ESBuild compilation
3. `mix tailwind default --minify` - Individual Tailwind compilation
4. `npm run build` - NPM build script fallback
5. `npm run build.css` - NPM CSS build script fallback

Assets are always rebuilt to ensure consistency after PhoenixKit updates.

# `check_and_rebuild`

Executes asset rebuilding using standard Phoenix asset pipeline.

## Options
- `:verbose` - Show detailed output (default: true)

## Returns
- `:rebuild_completed` - Assets were successfully rebuilt
- `:rebuild_failed` - Asset rebuild failed (non-critical)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
