Symfony bundle helper of required assets for Twig with Webpack

Installs: 3 179

Dependents: 3

Suggesters: 0

Security: 0

Stars: 11

Watchers: 3

Forks: 1

Open Issues: 0


v1.1.1 2019-05-02 13:15 UTC

This package is auto-updated.

Last update: 2020-07-31 00:18:47 UTC


Latest Version Build Status Coverage Status Scrutinizer Code Quality SensioLabsInsight

The Fxp RequireAssetBundle is a helper for twig to manage automatically the required assets with Webpack. It allows to define the required assets (script, style) directly in the Twig template and adds the HTML links of the assets automatically to the right place in the template, while removing duplicates.

Features include:
  • All features of Fxp Require Asset
  • Compatible with Webpack and source maps (require the plugin webpack-manifest-plugin or assets-webpack-plugin)
  • Configure (in global config or in container compiler pass):
    • the locale asset defined by each entry
    • the replacement of assets by other assets
  • Compiling the final list of asset in cache to increase performance for assets-webpack-plugin
  • Native support of the symfony templating (base URL and version)


The bulk of the documentation is located in the Resources/doc/index.md:

Read the Documentation

Read the Release Notes


All the installation instructions are located in documentation.


This bundle is under the MIT license. See the complete license in the bundle:



Fxp RequireAssetBundle is a François Pluchino initiative. See also the list of contributors.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.