Can CSS selectors be renamed or obfuscated in an Angular CLI project? Many top websites like Google and Facebook use randomized CSS names for various reasons, such as preventing website scripting through targeting static class names.
I would like to implement a similar strategy in my app, but I'm not seeing any straightforward way to do so. This article demonstrates how it can be achieved with one line using webpack, but Angular CLI doesn't seem to allow webpack configuration options.
Is there a solution that doesn't involve writing a custom script, or will I have to create one myself? I am willing to write a custom script if necessary, but I want to ensure I'm not duplicating existing solutions first.