fazy/assetic-config-bundle
Symfony bundle that adds configuration support for Assetic, making it easier to define and manage asset pipelines, filters, and compiled assets. It simplifies wiring Assetic settings through bundle configuration.
Adopt only if all of the following hold:
Look elsewhere — decisively — when:
transform hook) or a Blade/@vite directive with Vite::useBuildDirectory/env-driven config.For executives: This is a small, unmaintained Symfony 2 plugin that injects configuration values into compiled CSS/JS. It is not compatible with our Laravel stack and sits on a build tool (Assetic) that the PHP ecosystem retired years ago. Recommendation: do not adopt. The underlying idea — one asset bundle, many environments and tenants, configured at build time — is sound and worth ~1–2 engineer-days to reimplement on our existing Vite pipeline, which we control and can maintain.
For engineering: Treat fazy/assetic-config-bundle as prior art only. The valuable takeaway is the pattern: a build-step transform that substitutes named placeholders in front-end assets with values from application config. Implementing this on Vite is a transform hook plus a typed config manifest — small, testable, and ours. The hard rules are: never inject secrets (build output is public), keep placeholder names validated against a schema so typos fail the build rather than shipping broken CSS, and pin config values per environment in CI so builds are reproducible. There is no migration path from this package; there is only a re-implementation, and it is cheap.
How can I help you explore Laravel packages today?