New in Symfony 5.1: Remote asset manifest
way to integrate Webpack into your application. When building assets, Webpack
Encore creates a
manifest.json file listing all the generated assets (and
In Symfony 5.1, we've improved this feature to allow using manifest files stored in other servers and retrieved via HTTP requests. This is useful when using CDNs (content delivery networks) to serve your assets.
You don't need to add or enable any option to use this new feature. Just update
the value of your existing
json_manifest_path option and use an absolute
URL. Symfony will make an HTTP request automatically to retrieve the manifest:
1 2 3 4
# config/packages/assets.yaml framework: assets: json_manifest_path: 'https://cdn.example.com/manifest.json'
New in Symfony 5.1: Remote asset manifest symfony.com/blog/new-in-symfony-5-1-remote-asset-manifestTweet this
Become a certified developer! Exams are online and available in all countries.Register Now
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.