fix: add custom theme using string ref in angular.json (#11189)

Fixes #11188
This commit is contained in:
Jerry Orta
2018-05-08 11:55:44 -05:00
committed by Jeremy Elbourn
parent 853b04cf60
commit 33b5df43a5
+1 -1
View File
@@ -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.