Is there a way to extend Assetic so that it can load my images from a CDN that I am setting up somewhere else. If I can write a plugin / extension / event listener / etc that allows you to control small grains, that would be awesome.
Also, are there any hooks for the assetic: dump console command that I could use when I dump, I can automatically push the images from the local field to the CDN (since I want the images to be loaded locally on dev)
Basically, I want to have images sitting somewhere on my local machine, say: Web / images / image.png
On dev, when I do something like:
asset('images/image.png')
It would splash out such a url on dev:
http:
And in the production, he spat out something like:
http:
And when I run assetic: dump, the image automatically loads.
Thanks.
source share