We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffc228b commit 9e37984Copy full SHA for 9e37984
1 file changed
app/Concerns/HasRegistry.php
@@ -211,14 +211,21 @@ public function toRegistry(): array
211
'devDependencies' => $this->devDependencies ?? [],
212
'registryDependencies' => $this->registryDependencies ?? [],
213
'files' => $this->files ?? [],
214
- 'css' => $this->css ?? [],
215
'tailwind' => $this->tailwind,
216
- 'cssVars' => $this->buildCssVars(),
217
'meta' => $this->meta,
218
'docs' => $this->docs,
219
'categories' => $this->categories ?? [],
220
];
221
+ if (! empty($this->css)) {
+ $registry['css'] = $this->css;
222
+ }
223
+
224
+ $cssVars = $this->buildCssVars();
225
+ if (! empty($cssVars)) {
226
+ $registry['cssVars'] = $cssVars;
227
228
229
// registry:style exclusive
230
if ($this->type === 'registry:style') {
231
$registry['extends'] = $this->extends;
0 commit comments