定制 moritzebeling/kirby-cachebusting 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

moritzebeling/kirby-cachebusting

最新稳定版本:2.0.1

Composer 安装命令:

composer require moritzebeling/kirby-cachebusting

包简介

Kirby Cachebusting plugin

README 文档

README

⚠️ This is taken from the Kirby website and source code and only here to simplify installation for myself via composer. Please check:

The plugin adds a fingerprint like file.css?v=12345678 to every file added from the /assets folder using Kirbys helper methods like css() or js().

Via the options you can also provide a custom host if you want to host your assets on some CDN,

Installation

composer require moritzebeling/kirby-cachebusting
composer update moritzebeling/kirby-cachebusting

Or download/clone this repo into site/plugins of your Kirby project.

Config

# site/config/config.php
return [
    'moritzebeling.kirby-cachebusting' => false // to switch off completely,
    'moritzebeling.kirby-cachebusting.host' => 'https://remote-host.com', // to set remote host, like cdn
    // ...
];

Usage

Just use the css() and js() helper methods to include your styles and scripts.

Development

  1. Install a fresh Kirby StarterKit
  2. cd site/plugins
  3. git clone this repo

Support

If you have any ideas for further development or stumble upon any problems, please open an issue or PR. Thank you!

Warranty

This plugin is work in progress and comes without any warranty. Use at your own risk.

统计信息

  • 总下载量: 64
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固