Skip to content

Using multiple styleUrls does not work #115

Closed
@tjvantoll

Description

@tjvantoll

If I pass multiple .css files into a @Component decorator’s styleUrls property, only rules in the last .css file are applied. For instance in the code below only the rules in two.css are applied:

@Component({
  selector: "foo",
  template: "...",
  styleUrls: ["path/to/one.css", "path/to/two.css"]
})

This is a reasonably big limitation because using @import in .css files imported by Angular also doesn’t appear to work (which might be another issue?).

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions