Skip to content

Commit 26ca251

Browse files
committed
fix: Add meta data for Kirby plugin
1 parent 91fe17d commit 26ca251

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "diverently/laravel-mix-kirby",
33
"description": "Laravel Mix helper for the Kirby CMS",
44
"type": "kirby-plugin",
5+
"version": "1.4.2",
56
"license": "MIT",
67
"authors": [{
78
"name": "Robert Cordes",

index.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33
* Laravel Mix helper for the Kirby CMS
44
*/
55

6+
Kirby::plugin('diverently/laravel-mix-kirby', []);
7+
68
if (! function_exists('mix')) {
79
/**
810
* Get the appropriate HTML tag with the right path for the (versioned) Mix file.
911
*
1012
* @param string|array $path Path as it appears in the mix-manifest.json or an
1113
* array of paths to look for
12-
* @param string|bool|array $options Pass an array of attributes for the tag
13-
* or a string/bool. A string behaves in the same way as in Kirby's `css()`
14-
* and `js()` helper functions: for css files it will be used as the value
15-
* of the media attribute, for js files it will determine wether or not the
14+
* @param string|bool|array $options Pass an array of attributes for the tag
15+
* or a string/bool. A string behaves in the same way as in Kirby's `css()`
16+
* and `js()` helper functions: for css files it will be used as the value
17+
* of the media attribute, for js files it will determine wether or not the
1618
* script is async.
1719
* @return string Either a <link> or a <script> tag, depending on the $path
1820
*

0 commit comments

Comments
 (0)