fridzema / cdn-prefixer
小巧的 CDN URL 前缀器,可用作默认资源辅助工具的替代品
v0.0.1
2017-08-12 20:15 UTC
This package is auto-updated.
Last update: 2024-09-16 02:46:03 UTC
README
使用 composer require fridzema/cdn-prefixer 安装
在 config/app.php
中将 Fridzema\CdnPrefixer\CdnPrefixerServiceProvider::class
添加到 providers 数组中
在终端运行 php artisan vendor:publish --tag=config
现在在您的应用中使用 cdn() 而不是 asset(),它将被添加前缀。 cdn('js/app.js')