Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Mix Laravel Package

misterbk/mix

A Laravel integration for Laravel Mix that adds helpers and Blade directives to resolve compiled CSS/JS paths from mix-manifest.json, making versioned assets easy to reference and cache-bust without hardcoding URLs in your templates.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for asset plumbing: this is a ~single-purpose Craft CMS plugin that reads Laravel Mix’s mix-manifest.json (and hot-server file) and exposes resolved, cache-busted asset paths to Twig — typically as a mix() helper. The real decision is whether that glue is worth a dependency or ~50 lines of custom Twig extension in your own module. At this size, “buy” is really “rent” — and renting costs you a vendor review, a composer constraint, and an upgrade path.
  • Front-end toolchain standardization: adopt it only if Laravel Mix is already the sanctioned build tool across your properties. It makes Mix a first-class citizen inside Craft templates, which reduces per-project template boilerplate and the “where does the hashed filename come from?” question that recurs on every new site.
  • Cache-busting / CDN strategy: manifest-driven hashed filenames mean you can set long-lived immutable cache headers on assets and deploy without purge dances. That’s a real infrastructure-cost and reliability decision, not just a DX nicety.
  • Roadmap signal on Craft 5 / Vite: the existence and popularity profile of this plugin is a useful data point that the Craft ecosystem is drifting toward Vite-based tooling. If Mix is on your roadmap only for legacy reasons, this is the moment to scope the migration rather than deepen the Mix commitment.
  • Risk posture on micro-dependencies: 51 stars, 0 dependents, a single maintainer, and a low composite/opportunity score mean this should be treated as a convenience, not a platform. It informs your dependency policy: pin it, or inline the logic and own it.

When to Consider This Package

Consider it when:

  • You run Craft CMS 3/4/5 and your front-end pipeline is genuinely Laravel Mix (webpack).
  • You want manifest-based asset resolution in Twig without writing and maintaining a custom module.
  • You value a MIT-licensed, dependency-light helper over a bespoke implementation, and your team is comfortable auditing a small plugin.
  • Your asset paths are stable and you only need resolution plus hot-reload awareness — nothing more.

Look elsewhere when:

  • You are on Vite, or planning to be — use a Vite-oriented Craft plugin or Craft’s native Vite support instead; adopting this now is buying into a migration you’ll pay for twice.
  • You need build-time features beyond path resolution: critical CSS inlining, preload/prefetch hint generation, subresource integrity, multi-manifest or per-entry bundles.
  • Your dependency policy disallows single-maintainer plugins with no dependents, or you can’t tolerate an abandoned-maintainer scenario.
  • You already have a custom Twig extension doing this — the marginal value is near zero, and consolidating beats adding a second source of truth.

How to Pitch It (Stakeholders)

To executives: A small, free, MIT-licensed Craft CMS plugin that connects our asset build output to our templates. It lets us serve fingerprinted asset filenames, so we can cache aggressively at the CDN and ship front-end changes without cache-invalidation risk. Cost is effectively zero; the integration is a few lines in a template. The caveat is that it’s a niche, thinly-adopted utility — so we treat it as a convenience, not an architectural bet, and we keep the exit cheap.

To engineering: It solves one boring problem well — resolving mix-manifest.json entries (and the hot-server file in dev) into template-ready URLs. That removes repeated boilerplate from every Craft project and standardizes how we reference assets. Trade-off: it hardens our commitment to Laravel Mix, which is on the wrong side of the ecosystem’s move to Vite. Recommendation: adopt only where Mix already exists, pin the version, and wrap the call behind our own template helper so swapping to a Vite-based solution later is a one-file change rather than a template-wide refactor.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager