pixelopen/kirby-asset-version 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

pixelopen/kirby-asset-version

最新稳定版本:1.1.0

Composer 安装命令:

composer require pixelopen/kirby-asset-version

包简介

A plugin for Kirby CMS to add modification timestamps to css and js files

README 文档

README

GitHub release (with filter) Dependency Quality

A plugin for Kirby CMS to add modification timestamps to your assets files (js and css), as long as they are embedded with the css() and js() helpers.

This plugin is a fork on cachebuster developped by Timo Schneider : https://github.com/schnti/kirby3-cachebuster

We have simplified it at the code level and above all, asset versioning does not require URL rewriting, it is Apache and nginx compatible

Commercial Usage

This plugin is free but if you use it in a commercial project please consider

Installation

Download

Download the files and place them inside site/plugins/asset-version.

Composer

composer require pixelopen/kirby-asset-version

Git Submodule

You can add the plugin as a Git submodule.

$ cd your/project/root
$ git submodule add https://github.com/Pixel-Open/kirby-asset-version.git site/plugins/asset-version
$ git submodule update --init --recursive
$ git commit -am "Add Kirby asset version plugin"

Run these commands to update the plugin:

$ cd your/project/root
$ git submodule foreach git checkout master
$ git submodule foreach git pull
$ git commit -am "Update submodules"
$ git submodule update --init --recursive

Options

You can disable the plugin with the following line in your /site/config/config.php:

return [
  'pixelopen.asset-version.active' => false,
];

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-25