Skip to content

Commit 9e37984

Browse files
committed
HasRegistry updated
1 parent ffc228b commit 9e37984

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

app/Concerns/HasRegistry.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,21 @@ public function toRegistry(): array
211211
'devDependencies' => $this->devDependencies ?? [],
212212
'registryDependencies' => $this->registryDependencies ?? [],
213213
'files' => $this->files ?? [],
214-
'css' => $this->css ?? [],
215214
'tailwind' => $this->tailwind,
216-
'cssVars' => $this->buildCssVars(),
217215
'meta' => $this->meta,
218216
'docs' => $this->docs,
219217
'categories' => $this->categories ?? [],
220218
];
221219

220+
if (! empty($this->css)) {
221+
$registry['css'] = $this->css;
222+
}
223+
224+
$cssVars = $this->buildCssVars();
225+
if (! empty($cssVars)) {
226+
$registry['cssVars'] = $cssVars;
227+
}
228+
222229
// registry:style exclusive
223230
if ($this->type === 'registry:style') {
224231
$registry['extends'] = $this->extends;

0 commit comments

Comments
 (0)