Have you ever wondered how is it possible to import CSS into JavaScript files? In this article I’ll show you how Webpack does it by transforming your CSS styles into JavaScript.

This is expected but the real question is how does Angular-CLI does it? Actually the styles are packaged and delivered to the client by webpack. Angular-CLI uses webpack under the hood and only configures it.

In this article I will show step-by-step how it’s done using webpack. The information presented here will be useful for anyone using webpack, not just Angular-CLI.

#webpack #cli #cli/webpack #css

This Is How angular-cli/webpack Delivers Your CSS Styles to The Client
2.35 GEEK