核心前端 / pith-pack-src-fallback
包装资源回退库
0.1.0
2024-03-17 22:06 UTC
Requires
- php: ^8.2
- ext-gd: *
- ext-json: *
- ext-pdo: *
- ext-readline: *
- pith/base: ^0.2.0
- pith/workflow-elements: ^0.3.0
This package is auto-updated.
Last update: 2024-09-17 23:12:24 UTC
README
为Pith包装资源回退库
关于
此项目打包资源回退库,以便与Pith框架一起使用。
有关MutationObserver的信息,请参阅https://github.com/megawac/MutationObserver.js的Git仓库。
有关sri-fallback的信息,请参阅https://github.com/cyph/sri-fallback的Git仓库。
有关Pith的信息,请参阅Pith网站https://pith-framework.org/
安装
安装到现有的Pith框架项目
使用Composer将包安装到vendor
文件夹。
php composer.phar require pith-front/pith-pack-src-fallback
向您的路由列表添加新路由
public array $routes = [ // Other routes.... // ... // Add route to call src fallback resources from ['route', 'GET', '/resources/vendor/library/src-fallback/{filepath:.+}', '\\PithFront\\PithPackSrcFallback\\SrcFallbackResourceRoute'], ];
许可信息
pith-pack-src-fallback包含MutationObserver和sri-fallback。
MutationObserver
- MutationObserver
- MIT许可
- 版权 © 2014 Graeme Yeates
- 链接:https://github.com/megawac/MutationObserver.js
sri-fallback
- sri-fallback
- 许可:简化版BSD许可
- 版权(c)2017,Cyph,Inc.
- 版权所有。
- 链接:https://github.com/cyph/sri-fallback
pith-pack-src-fallback
- pith-pack-src-fallback
- MIT许可
- 版权(c)Ian Maurmann
- 链接:https://github.com/pith-front/pith-pack-src-fallback
谢谢!