Download the PHP package mrfd/kirby-mix without Composer
On this page you can find all versions of the php package mrfd/kirby-mix. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mrfd/kirby-mix
More information about mrfd/kirby-mix
Files in mrfd/kirby-mix
Package kirby-mix
Short Description Laravel Mix integration for Kirby 3, which hooks into the existing helper functions.
License MIT
Informations about the package kirby-mix
Kirby 3 Mix
This plugin integrates the Laravel Mix manifest into Kirby 3, using the existing js()
and css()
helper functions.
Commerical Usage
This plugin is free but if you use it in a commercial project please consider to
Requirements
- PHP 8.0+
- Kirby 3
Installation
Download
Download and copy the files to /site/plugins/kirby-mix
.
Git submodule
Composer
Usage
This plugin helps with the long-term caching that Laravel Mix provides with the mix.version()
function. Read more about it in the Laravel Mix documentation.
The plugin is enabled by default, and passes files trough that are not in the manifest. All functionality offered by the js()
and css()
helpers remains unchanged.
Usage example
Example webpack.mix.js
Options
Option | Default | Description |
---|---|---|
mrfd.mix.enable |
true |
Activated or deactivated the Kirby Mix plugin. |
mrfd.mix.manifest |
mix-manifest.json |
File name including extension of the manifest file. |
mrfd.mix.publicPath |
assets |
The public path to the assets folder. |
Disclaimer
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
License
Kirby WebP is open-sourced software licensed under the MIT license.
Copyright © 2020 Marijn Roovers
Credits
- Laravel Mix by Jeffrey Way