mix phoenix_kit.assets.rebuild (phoenix_kit v1.4.4)
View SourceRebuilds assets for PhoenixKit using standard Phoenix asset pipeline.
This task rebuilds assets using the Phoenix asset build system by trying multiple commands in order of preference:
mix assets.build- Phoenix 1.8+ standard asset pipelinemix esbuildandmix tailwind- Individual asset buildersnpm run build- NPM build script fallback
Usage
$ mix phoenix_kit.assets.rebuild
$ mix phoenix_kit.assets.rebuild --check
$ mix phoenix_kit.assets.rebuild --force
Options
--check- Only check if rebuild is needed, don't execute--force- Force rebuild even if not detected as needed--verbose- Show detailed output during process (default: true)--silent- Suppress all output except errors
When to use
This task is automatically called by:
mix phoenix_kit.install(after successful installation)mix phoenix_kit.update(after successful update, unless --skip-assets)
You may need to run it manually when:
- CSS integration was manually modified
- Tailwind/daisyUI configuration was changed
- PhoenixKit assets are not displaying correctly
- After updating Phoenix asset configuration
Examples
# Check if rebuild is needed
mix phoenix_kit.assets.rebuild --check
# Force rebuild all assets
mix phoenix_kit.assets.rebuild --force
# Silent rebuild (only show errors)
mix phoenix_kit.assets.rebuild --silentAsset Build Pipeline
This task uses the standard Phoenix asset pipeline to ensure compatibility with your application's build process. It automatically detects and uses the appropriate build commands available in your project.