Skip to content

Dynamic switching of multiple stylesheets for an angular-cli project #4202

@bartlomiejkuczma

Description

@bartlomiejkuczma

OS?

Windows 10

Versions.

angular-cli: 1.0.0-beta.16

Repro steps.

The log given by the failure.

Mention any other details that might be useful.

I am currently working on an angular2 project for production created in angular-cli (I know it might not be the best approach but it was not my decision) and the problem we are currently facing is using different stylesheets per customer. I have seen that webpack starter project allows you to do it in various ways, e.g. using htmlwebpackplugin to inject stylesheets on the runtime, however I could not figure it out how to do such thing for angular-cli project. So my actual question is whether there is a way for angular-cli to somehow switch those stylesheets dynamically by specifying a string argument such as brand to load correct file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions