Skip to content

Commit

Permalink
do not export css class when there's no property
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuyaseki committed Oct 15, 2021
1 parent db54fbe commit bad340f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildCssString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function buildCssString(tag: Tag, cssStyle: CssStyle): string {
return codeStr
}
cssArray.forEach((cssData) => {
if (!cssData) {
if (!cssData || cssData.properties.length === 0) {
return
}
const cssStr =
Expand Down

0 comments on commit bad340f

Please sign in to comment.