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
Webpack Encore Bundle

Webpack Encore Bundle Laravel Package

symfony/webpack-encore-bundle

Symfony bundle that integrates Webpack Encore, reading entrypoints.json to render script and link tags for split entry chunks. Note: Encore is now low-maintenance; consider Symfony Reprise for new projects.

View on GitHub
Deep Wiki
Context7

Symfony integration with Webpack Encore!

Frequently asked questions about Webpack Encore Bundle
Is symfony/webpack-encore-bundle a Laravel package?
No. It is a Symfony bundle that integrates Webpack Encore with Symfony applications by reading entrypoints.json and rendering the script and link tags needed for splitEntryChunks(). It depends on Symfony concepts such as bundles, dependency injection, and Twig helpers, so it is not a Laravel-native package.
Can I use symfony/webpack-encore-bundle in Laravel instead of Laravel Vite?
You should not use it as a Laravel asset pipeline. It would add Symfony bundle conventions and Webpack Encore operational overhead without a Laravel service provider or native integration. Laravel teams should use Laravel Vite or Mix unless the application contains a specific Symfony subsystem that already requires Encore.
What does symfony/webpack-encore-bundle do with entrypoints.json?
The bundle reads the entrypoints.json file produced by Webpack Encore and renders the dynamic script and link tags required for features like splitEntryChunks(). Its core components include TagRenderer, EntrypointLookup, and Twig helpers. This lets Symfony templates load the correct built assets without manually listing every chunk.
How do I install symfony/webpack-encore-bundle in a Symfony application?
Install it with Composer as symfony/webpack-encore-bundle. In Symfony Flex applications the recipe normally registers the bundle and provides default configuration, after which you configure Webpack Encore to emit entrypoints.json and point the bundle at your build output. This installation path is Symfony-oriented and does not apply to standard Laravel apps.
Which Laravel versions does symfony/webpack-encore-bundle support?
None. The package is a Symfony bundle, so it does not declare or target Laravel framework versions. Laravel applications should use Laravel Vite or Mix rather than adding a Symfony Encore bundle. If a Laravel codebase includes a Symfony subsystem, evaluate that subsystem separately instead of treating this as general Laravel support.
Is Webpack Encore still actively maintained?
Webpack Encore is now in low-maintenance mode, receiving bug fixes, security patches, and peerDependencies updates only. The maintainers recommend migrating to Symfony Reprise for projects that need a bundler. Treat this as a lifecycle risk for new adoption and review existing usage before major Symfony, PHP, or Twig upgrades.
What changed in symfony/webpack-encore-bundle v2.4.2?
v2.4.2 is a patch-level maintenance release. The main user-facing fix corrects duplicate rel attributes in the Link HTTP header, which improves correctness for preload and preconnect headers. Most other changes are Dependabot and CI action updates, and the release also adds the low-maintenance notice recommending Symfony Reprise.
Should existing Symfony apps upgrade to symfony/webpack-encore-bundle 2.4.2?
Existing Symfony applications already using Webpack Encore should generally upgrade to v2.4.2 for the Link header duplicate rel fix. Validate emitted headers in staging, especially if you use preload or preconnect. Also document the low-maintenance notice and assign an owner to evaluate Symfony Reprise or alternative asset tooling.
What are the best alternatives to symfony/webpack-encore-bundle for Laravel teams?
For Laravel teams the default alternatives are Laravel Vite or Laravel Mix, which are Laravel-native asset pipelines. This Symfony Encore bundle is not a suitable replacement for them. For new Symfony work, evaluate Symfony Reprise as recommended by the maintainers, or consider Vite-based tooling instead of adopting Encore.
How should I test symfony/webpack-encore-bundle output before production?
Render the relevant Symfony templates in staging and confirm that the expected script and link tags appear for your entrypoints. If you use preload or preconnect, inspect the emitted Link HTTP headers to verify the duplicate rel fix and check that entrypoints.json is loaded from the expected local build artifacts. Avoid remote entrypoints.json in production where possible, pin versions, and monitor security advisories.
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.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core