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

Frontend Bundle Laravel Package

regularjack/frontend-bundle

RegularJack FrontendBundle is a PHP package that helps integrate frontend assets into Laravel/PHP applications. It provides configurable conventions for organizing, loading, and managing CSS and JavaScript build output, simplifying asset wiring and view integration.

View on GitHub
Deep Wiki
Context7

Getting Started

Status first: this package is deprecated. v0.2.2 contains no functional changes — it replaces the package with a notice that it is superseded by Webpack Encore. Treat v0.2.2 as a tombstone release: no bug fixes, no Node/webpack compatibility work, and no security patches will follow.

If you are starting a project, do not adopt this package. Go to the successor tooling instead; for a Laravel app the most natural comparison point is Laravel Mix (a webpack wrapper), and the deprecation notice itself points at Symfony's Webpack Encore docs. Either way you get a maintained build pipeline.

If you are inheriting an app that already depends on it:

  1. composer require / npm install at the currently pinned version and commit the lockfile — do not float versions, since transitive dev dependencies will drift under you.
  2. Look first at the build entry point (typically the gulpfile.js at the project root) and the asset source directory (resources/assets/...). That single file is the whole integration surface.
  3. Run the default build task before changing anything, so you know whether the existing pipeline even runs on your machine's Node version. That is your baseline.

First productive use case: compiling Sass and concatenating/versioning JS into public/ with a manifest for cache busting, then referencing the output from Blade. Get that loop working (build → watch → reference the hashed file) before touching anything else.

Implementation Patterns

Isolate the build behind npm scripts. The most valuable pattern when a build tool is deprecated is to make the tool swappable. Wrap every invocation in package.json scripts ("dev", "watch", "build") so the day-to-day commands developers type never mention the underlying tool. Migrating to Encore/Mix then becomes a change to three script lines plus one config file, not a codebase-wide hunt.

Development loop: watch, don't rebuild. Run the watch task in one terminal alongside php artisan serve. Source maps on, minification off. Keep the production task separate and run it only in CI or before deploy — mixing the two is the usual cause of "works locally, broken on prod."

Versioning and Blade references. Use the built-in hashing/manifest step for production builds and resolve asset paths through the package's Blade helper rather than hardcoding /css/app.css. Hardcoded paths defeat cache busting and are the single biggest source of "users see stale CSS after deploy."

Environment parity. Pin Node with an .nvmrc/engines field and run the identical build command in CI as locally. Old asset pipelines are unusually sensitive to Node major versions; document the supported one in the README of your own repo, because the package's own docs are frozen.

Migration pattern. Build the replacement pipeline in parallel against the same source files, diff the emitted public/ output, then flip the npm script. Keeping both configs side by side for one release cycle is cheap insurance and lets you verify hashed filenames and manifest contents match.

Gotchas and Tips

  • Deprecation is not a warning, it is a deadline. Nothing here will be fixed. Any CVE in the transitive Gulp/Node toolchain, or any Node upgrade that breaks the build, is yours to solve. Budget migration work rather than deferring it.
  • The successor named in the notice is not Laravel-specific. The link goes to Symfony's Webpack Encore docs. If you are on Laravel, evaluate Laravel Mix as well before committing — both are webpack-based, but Mix ships Laravel-flavoured defaults (Blade-friendly manifest, mix() helper) that reduce migration friction.
  • Node version is the most common failure mode. Native modules in older pipelines (node-sass and friends) fail to build on modern Node. If install fails, check the Node major version before debugging anything else.
  • Stale manifests cause phantom bugs. If Blade renders an old hashed filename, the manifest wasn't regenerated — clear it and rebuild. Add the generated manifest to .gitignore unless your deploy runs the build step.
  • Debugging: run tasks with stack traces enabled and check the memory ceiling for large bundles (NODE_OPTIONS=--max-old-space-size=...). Path and symlink issues on Windows/WSL are common with Gulp-era tooling; building inside WSL rather than on the Windows filesystem usually resolves them.
  • Extension points: custom tasks defined alongside the main config are the usual escape hatch. Before adding one, ask whether the migration target supports it natively — porting a bespoke Gulp task into webpack is far harder than porting a standard Sass/JS compile step.
  • Freeze and communicate. Pin the exact version, note the deprecation in your project README with the date you plan to migrate, and stop onboarding new contributors onto it.
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.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource