Stolz / Assets

An ultra-simple-to-use assets management library for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CDN support

almamund opened this issue · comments

Hello,
I use this package in most of my laravel apps. Could you pls give me some hint how I can use CDN with the files compressed by this pkg?
Would be great if you had config options to integrate (maybe other) cdn packages.

Regards

commented

Please take a look at the notify_command configuration option.

It accepts a closure that will be invoked every time new assets are pipelined. You can use it to hook to pipeline and upload your new assets to your CDN. Then you can load your CDN assets using their absolute URL.