wasinger/bundle-asset-provider-bundle

Include assets from bundles into webpack encore builds

dev-master 2018-12-17 16:55 UTC

This package is auto-updated.

Last update: 2021-04-17 22:07:49 UTC


README

A Symfony bundle containing console commands useful for including web assets from bundles into the Webpack Encore build:

  • assets:sources: Loops through all installed bundles. If a bundle provides an assets folder, copies or symlinks this folder to assets/bundles/<bundle-name> in the project root dir.

  • assets:dependencies: Loops through all installed bundles. If a bundle provides a package.json file, reads the "dependencies" section of this file, compares it to the dependencies in the package.json file in the project root dir, and lists missing or incompatible dependencies.

See https://github.com/symfony/webpack-encore/issues/5#issuecomment-442374652