pollora/assets
pollora/assets provides asset handling for Pollora applications, making it easy to register, version, and enqueue CSS and JavaScript, resolve built asset paths, and integrate modern build tooling such as Vite with Laravel-style configuration.
NativeViteManager reads the manifest and hot file directly and is described as returning the same answers as the framework resolver, which reduces the risk of divergent frontend build behavior across Laravel and non-Laravel WordPress projects.ViteManagerFactory, RuntimeContext, and PublicPath contracts let teams bind asset behavior to different environments. That is a useful architectural seam for supporting classic themes, plugins, and Bedrock sites with one asset model.Asset::add()->container()->useVite()->toFrontend() and Asset::addContainer() give PMs a concrete API surface to evaluate for theme/plugin asset registration, enqueueing, and Vite integration.Consider it when:
@pollora/vite-config and want the asset layer available outside the full framework.Look elsewhere when:
For executives: This release extracts Pollora’s asset management and Vite resolver into a standalone package, so we can reuse the same frontend asset model on WordPress themes, plugins, and Bedrock sites without taking on Laravel. That reduces platform coupling and supports a consistent Vite-based frontend strategy. The caveat is maturity: v0.1.0 is a first release, so this is best treated as a pilot or strategic option rather than a default standard.
For engineering: The package preserves the framework’s class names and introduces clean environment contracts (ViteManagerFactory, RuntimeContext, PublicPath). NativeViteManager provides manifest and hot-file resolution outside Laravel, and the Pollora\Asset\Asset facade supports classic themes, plugins, and Bedrock with declared containers. Evaluate API stability, documentation, and contract implementations before production adoption; the architecture is sound, but the release is early.
How can I help you explore Laravel packages today?