Download the PHP package pixelopen/kirby-asset-version without Composer
On this page you can find all versions of the php package pixelopen/kirby-asset-version. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pixelopen/kirby-asset-version
More information about pixelopen/kirby-asset-version
Files in pixelopen/kirby-asset-version
Package kirby-asset-version
Short Description A plugin for Kirby CMS to add modification timestamps to css and js files
License MIT
Homepage https://github.com/Pixel-Open/kirby-asset-version
Informations about the package kirby-asset-version
Asset version plugin for Kirby CMS
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
- making a donation for Timo Schneider
Installation
Download
Download the files and place them inside site/plugins/asset-version
.
Composer
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
:
All versions of kirby-asset-version with dependencies
getkirby/composer-installer Version ^1.1
getkirby/cms Version ^3.9.0||^4.0.0