fxp/require-asset-bundle

Symfony bundle helper of required assets for Twig with Webpack

v1.0.0 2018-06-20 13:08 UTC

README

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)

Documentation

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

Read the Documentation

Read the Release Notes

Installation

All the installation instructions are located in documentation.

License

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

LICENSE

About

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.