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.
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:
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.gulpfile.js at the project root) and the asset source directory (resources/assets/...). That single file is the whole integration surface.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.
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.
mix() helper) that reduce migration friction..gitignore unless your deploy runs the build step.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.How can I help you explore Laravel packages today?