Build ​
Build Modularous Vue assets with custom components, themes, and Inertia pages.
Command Information ​
- Signature:
modularous:build - Alias:
build:modularous - Category: Assets
Options ​
| Option | Description |
|---|---|
--noInstall | Skip npm ci and reuse existing dependencies |
--hot | Start the Vite dev server with hot reload |
-w, --watch | Run the asset watcher |
-c, --copyOnly | Copy custom components/pages/themes without building |
--copyComponents | Copy only custom Vue components |
--copyInertiaPages | Copy only custom Inertia pages |
--copyTheme | Copy only the selected custom theme styles |
--copyThemeScript | Copy only the selected custom theme script |
--theme= | Theme name when using copy-theme options |
What It Does ​
- Installs npm dependencies in the Modularous Vue package (unless
--noInstall). - Publishes and copies custom components, Inertia pages, and themes from the host app and modules.
- Runs
npm run build,npm run dev, ornpm run watchdepending on the selected mode. - Calls
modularous:refreshafter a production build to republish compiled assets.
Examples ​
bash
php artisan modularous:build
php artisan modularous:build --hot
php artisan modularous:build --watch
php artisan modularous:build --copyOnly
php artisan modularous:build --copyTheme --theme=my-themeRelated ​
- refresh — republish compiled assets to
public/vendor/modularous - ModularousVite — how published assets are loaded in Blade