Skip to content

Commit

Permalink
fix: supports extracting styles from multiple styleUrls (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
denver-HJS authored and dherges committed Dec 30, 2017
1 parent 94c6312 commit 4cfd98d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/util/ts-transformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const componentTransformer: ComponentTransformer =
.filter((node) => node.kind === ts.SyntaxKind.SyntaxList)
.map((node) => node.getChildren().map(n => n.getText()))
.reduce((prev, current) => prev.concat(...current), [])
.filter(text => text !== ',')
.map((url) => url.substring(1, url.length - 1));

const stylesheets = styleUrls.map((url: string) => {
Expand Down

0 comments on commit 4cfd98d

Please sign in to comment.