Symfony2 如何将 CDN 与 liipimagineBundle 一起使用?
Symfony2 how to use CDN with liipimagineBundle?
我想在 CDN 上托管我的所有资产(img、css、js、...),没有 aws!
如何使用 liipimagineBundle 做到这一点?
谢谢!
阅读以下内容:
https://symfony.com/blog/new-in-symfony-2-7-the-new-asset-component
https://symfony.com/doc/current/components/asset/introduction.html
https://symfony.com/doc/current/best_practices/web-assets.html
以及资产文档。
查看 LiipImagineBundle,它们似乎只提供了您在 twig 中使用的 filters/functions,因此您可以正常调用两者。
如果此回复不够或不清楚,请告诉我,我会对其进行编辑以尽可能补充。
谢谢。
如果不编写自定义加载程序、管理器、工厂,这是不可能的...我使用了修改版本:https://github.com/flug/imagine-bundle
我想在 CDN 上托管我的所有资产(img、css、js、...),没有 aws!
如何使用 liipimagineBundle 做到这一点?
谢谢!
阅读以下内容:
https://symfony.com/blog/new-in-symfony-2-7-the-new-asset-component
https://symfony.com/doc/current/components/asset/introduction.html
https://symfony.com/doc/current/best_practices/web-assets.html
以及资产文档。
查看 LiipImagineBundle,它们似乎只提供了您在 twig 中使用的 filters/functions,因此您可以正常调用两者。
如果此回复不够或不清楚,请告诉我,我会对其进行编辑以尽可能补充。
谢谢。
如果不编写自定义加载程序、管理器、工厂,这是不可能的...我使用了修改版本:https://github.com/flug/imagine-bundle