Skip to content

Commit

Permalink
fix: allow optional assets in build config
Browse files Browse the repository at this point in the history
Fixes #82
  • Loading branch information
patdx committed Mar 12, 2021
1 parent f741582 commit 27a4a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function getBaseWebpackPartial(options: BuildBuilderOptions): Configurati
}

// process asset entries
if (options.assets) {
if (options.assets && options.assets.length >= 1) {
const copyWebpackPluginPatterns = options.assets.map((asset: any) => {
return {
context: asset.input,
Expand Down

0 comments on commit 27a4a90

Please sign in to comment.