Skip to content

Commit 33b5df4

Browse files
jerryorta-devjelbourn
authored andcommitted
fix: add custom theme using string ref in angular.json (#11189)
Fixes #11188
1 parent 853b04c commit 33b5df4

File tree

1 file changed

+1
-1
lines changed
  • src/lib/schematics/utils

1 file changed

+1
-1
lines changed

src/lib/schematics/utils/ast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function getStylesPath(host: Tree, project: Project): string {
6767
const buildTarget = project.architect['build'];
6868

6969
if (buildTarget.options && buildTarget.options.styles && buildTarget.options.styles.length) {
70-
const styles = buildTarget.options.styles.map(s => s.input);
70+
const styles = buildTarget.options.styles.map(s => typeof s === 'string' ? s : s.input);
7171

7272
// First, see if any of the assets is called "styles.(le|sc|c)ss", which is the default
7373
// "main" style sheet.

0 commit comments

Comments
 (0)