Skip to content

Commit

Permalink
[FIX] Themes not beeing build
Browse files Browse the repository at this point in the history
Themes should also build if there is an librariesPattern provided but no library found

Fixes: #110
  • Loading branch information
sebbi08 authored and RandomByte committed Dec 19, 2018
1 parent f6f8b9a commit de26564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/buildThemes.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function({workspace, dependencies, options}) {
}

return Promise.all(promises).then(([allResources, availableLibraries]) => {
if (!availableLibraries) {
if (!availableLibraries || availableLibraries.length === 0) {
// Try to build all themes
return allResources;
}
Expand Down

0 comments on commit de26564

Please sign in to comment.