Skip to content

Commit

Permalink
fix: Add meta data for Kirby plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCordes committed Nov 5, 2022
1 parent 91fe17d commit 26ca251
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "diverently/laravel-mix-kirby",
"description": "Laravel Mix helper for the Kirby CMS",
"type": "kirby-plugin",
"version": "1.4.2",
"license": "MIT",
"authors": [{
"name": "Robert Cordes",
Expand Down
10 changes: 6 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
* Laravel Mix helper for the Kirby CMS
*/

Kirby::plugin('diverently/laravel-mix-kirby', []);

if (! function_exists('mix')) {
/**
* Get the appropriate HTML tag with the right path for the (versioned) Mix file.
*
* @param string|array $path Path as it appears in the mix-manifest.json or an
* array of paths to look for
* @param string|bool|array $options Pass an array of attributes for the tag
* or a string/bool. A string behaves in the same way as in Kirby's `css()`
* and `js()` helper functions: for css files it will be used as the value
* of the media attribute, for js files it will determine wether or not the
* @param string|bool|array $options Pass an array of attributes for the tag
* or a string/bool. A string behaves in the same way as in Kirby's `css()`
* and `js()` helper functions: for css files it will be used as the value
* of the media attribute, for js files it will determine wether or not the
* script is async.
* @return string Either a <link> or a <script> tag, depending on the $path
*
Expand Down

0 comments on commit 26ca251

Please sign in to comment.