arubacao / asset-cdn

Serve Laravel Assets from a Content Delivery Network (CDN)
MIT License
112 stars 26 forks source link

Is there Any setting so In my local load css, js and fonts etc from my local and on live server load from CDN? #10

Closed jayeshcspl closed 4 years ago

jayeshcspl commented 4 years ago

Really plugin is very awesome.

I need small help from you.

Can we do that so when I run site from my local system it loads all css, js and fonts from my local so when internet is not working then I can also work easily. And when I run live site all things load from CDN.

Is there any settting for that?

Thank you for your great help and support.

arubacao commented 4 years ago

For this, use the environment variable USE_CDN. true on your live site, false locally

jayeshcspl commented 4 years ago

Thank you very much. It's working fine.