Skip to content

Commit

Permalink
fix: add custom theme using string ref in angular.json (#11189)
Browse files Browse the repository at this point in the history
Fixes #11188
  • Loading branch information
jerryorta-dev authored and jelbourn committed May 8, 2018
1 parent 853b04c commit 33b5df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/schematics/utils/ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function getStylesPath(host: Tree, project: Project): string {
const buildTarget = project.architect['build'];

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

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

0 comments on commit 33b5df4

Please sign in to comment.