wip: return empty string if no cssVars are present
This commit is contained in:
parent
03b2bfff09
commit
6541e70acb
@ -26,7 +26,7 @@ export function generateCssVars(
|
|||||||
id: string,
|
id: string,
|
||||||
isProd: boolean
|
isProd: boolean
|
||||||
): string {
|
): string {
|
||||||
return genCssVarsFromList(sfc.cssVars, id, isProd)
|
return sfc.cssVars.length ? genCssVarsFromList(sfc.cssVars, id, isProd) : ''
|
||||||
}
|
}
|
||||||
|
|
||||||
function genCssVarsFromList(
|
function genCssVarsFromList(
|
||||||
|
Loading…
Reference in New Issue
Block a user