diff --git a/app/angular/src/server/angular-cli_utils.js b/app/angular/src/server/angular-cli_utils.js index 141cb99bcd4a..d2ec6b6ed427 100644 --- a/app/angular/src/server/angular-cli_utils.js +++ b/app/angular/src/server/angular-cli_utils.js @@ -38,6 +38,10 @@ export function normalizeAssetPatterns(assetPatterns, dirToSearch, sourceRoot) { } return assetPatterns.map(assetPattern => { + if (typeof assetPattern === 'object') { + return assetPattern; + } + const assetPath = normalize(assetPattern); const resolvedSourceRoot = resolve(dirToSearch, sourceRoot); const resolvedAssetPath = resolve(dirToSearch, assetPath);