核心前端/pith-pack-src-fallback

0.1.0 2024-03-17 22:06 UTC

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

sri-fallback

pith-pack-src-fallback

谢谢!