How to include all .less files in angular-cli.json styles section?

Viewed 868

So the problem I have is that each time after I create a new component, I have to remember to add it's .less stylesheet to angular-cli.json file. What I'd really like to have is to somehow tell angular to just rebuild all .less files wherever in src they are. I tried doing something like this:

{
    "apps": [
        {
            ...
            "styles": [
                "**/*.less"
            ],
            ...
        }
    ]
}

But I'm getting

module not found error

Any help?

1 Answers
Related