Skip to content

Commit 042ced2

Browse files
authored
Add message about unused widgets (#110)
1 parent e61f2e1 commit 042ced2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

commands/themebuider.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ const runThemeBuilder = async rawOptions => {
197197
if(result.swatchSelector) {
198198
console.log(`Add the '${result.swatchSelector}' class to the container to apply swatch styles to its nested elements.`);
199199
}
200+
if(result.unusedWidgets && result.unusedWidgets.length) {
201+
console.log('Styles for the following widgets were not included in the resulting theme because these widgets cannot be stylized using CSS:\n');
202+
result.unusedWidgets.forEach(w => console.log(`${w}\n`));
203+
}
200204
} else if(options.command === commands.BUILD_VARS) {
201205
const metadata = getMeta(result.compiledMetadata, options.base, filter, baseParameters);
202206

0 commit comments

Comments
 (0)