Download the PHP package wnx/kirby-laravel-mix-helper without Composer
On this page you can find all versions of the php package wnx/kirby-laravel-mix-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wnx/kirby-laravel-mix-helper
More information about wnx/kirby-laravel-mix-helper
Files in wnx/kirby-laravel-mix-helper
Package kirby-laravel-mix-helper
Short Description Helper to use Version Busting of Laravel Mix
License MIT
Homepage https://github.com/stefanzweifel/kirby-laravel-mix-helper
Informations about the package kirby-laravel-mix-helper
kirby-laravel-mix-helper
Kirby Plugin to use laravel-mix's Versioning / Cache Busting.
Installation
Place kirby-laravel-mix-helper.php
into /site/plugins/kirby-laravel-mix-helper
folder.
Advanced: Composer
You can also install this plugin through composer. Execute the following command in the root of your kirby plugin. Composer will place the files automatically in the plugins directory.
Change Installation Path
If you have a custom folder structure in your kirby project, you can also adjust the installation path within your composer.json
. Add the following setting:
Advanced: Git Submodules
Usage
After installing the plugin the mix()
helper is available to you. In your template you can then use it in your link
- and script
-tags like this:
The mix
helper will read your mix-manifest.json
file and append the cache busting ID to the asset path.
The rendered HTML will look like this:
Configuration
The plugin comes with one configuration option: mix.manifest
.
Add it to your config.php
file if your mix-manifest.json
file is stored at a custom path.
License
MIT