We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2fec09e + 0f65c8c commit 2414170Copy full SHA for 2414170
1 file changed
src/Helpers/vite_helper.php
@@ -5,11 +5,16 @@
5
/**
6
* Get vite entry file or bundled files.
7
*
8
- * @return array|null
+ * @return string|null
9
*/
10
-function viteTags(): ?array
+function viteTags(string $assets): ?string
11
{
12
- return Vite::tags();
+ if (in_array($assets, ['js', 'css']))
13
+ {
14
+ return Vite::tags()[$assets];
15
+ }
16
+
17
+ return null;
18
}
19
20
0 commit comments