For performance reasons, I want to deliver some of my files from a CDN.
Is it possible to configure the "asset" helper such that it automaticly sets something like "static1.xxxx.com/css/main.css" and "static2.xxxx.com/css/main.css"?
Perhaps something like:
{{ asset('css/main.css',static1) }}
in in config.yml just add something like:
framework:
templating:
engines: ['twig']
assets_base_urls:
http: [http://yourcdn.com]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With