symfony/asset-mapper
Symfony AssetMapper exposes asset directories, copies them to a public folder with digested/versioned filenames, and can generate an importmap so you can use modern JavaScript modules without a build step.
?v=1.2) with automated, hash-based filenames (e.g., styles.[hash].css), eliminating cache-busting errors and reducing frontend bugs without requiring a full build pipeline.Adopt symfony/asset-mapper if:
Avoid this package if:
FrameworkBundle patterns, requiring Laravel-specific workarounds).mix-manifest.json compatibility, or seamless Laravel Mix/Vite integration).*"This package lets us modernize frontend assets with minimal risk and zero upfront cost. By automatically generating importmaps and versioned filenames, we:
*"This solves two key pain points:
?v=1.2 hacks—automated hashing ensures long-term caching and eliminates stale asset issues.*"This is Webpack-lite for Laravel:
composer require symfony/asset-mapper.asset_mapper.yaml (or use defaults).php bin/console asset-mapper:dump to generate versioned assets.
Best for: Simple projects, admin panels, or prototyping modern JS without build tool overhead."How can I help you explore Laravel packages today?