frontend

Build production-optimized assets using Vite (or webpack).

php artisan npm run build

Syntax

Syntax
npm run build

Explanation

Compiles, minifies, and bundles assets for production. Generates hashed filenames for cache busting. Output goes to public/build/ (Laravel default). Run after deploying code changes.

Example

Example
npm run build

Explanation

Compiles, minifies, and bundles assets for production. Generates hashed filenames for cache busting. Output goes to public/build/ (Laravel default). Run after deploying code changes.