---
title: "Discussion on \"How to exclude stylesheets from the bundle and lazy load them in Angular?\" | Hashnode"
description: "Discussion on \"How to exclude stylesheets from the bundle and lazy load them in Angular?\". Let’s learn how we can load stylesheets only when needed without making them part of the application bundle."
url: "https://hashnode.com/posts/how-to-exclude-stylesheets-from-the-bundle-and-lazy-load-them-in-angular/61233081a5d08237f40e3131"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to exclude stylesheets from the bundle and lazy load them in Angular?](https://shhdharmen.hashnode.dev/how-to-exclude-stylesheets-from-the-bundle-and-lazy-load-them-in-angular?utm_source=hashnode&utm_medium=feed)

Let’s learn how we can load stylesheets only when needed without making them part of the application bundle.

Aug 23, 2021 · 2 min read · shhdharmen.hashnode.dev  
Updated Aug 24, 2021  
Read the article

-   [#angular](https://hashnode.com/tag/angular)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#css](https://hashnode.com/tag/css)
-   [#bundling](https://hashnode.com/tag/bundling)

## Written by

[Dharmen Shah](https://hashnode.com/@shhdharmen)

@shhdharmen · Ahmedabad, GJ, IN

  
[View profile](https://hashnode.com/@shhdharmen)

Sr. Full-Stack Developer

I am a 👔👨🏻‍💻 Front-end Developer. I like to work on 💻 Web stuff (HTML, CSS, JS), 🅰️ Angular, ⚛️ React, 🖌️ Bootstrap. I also love 🤗 to contribute to 👐 Open-Source Projects and sometime ✒️ write 📜 articles.

## Responses 2

Markdown supported · ⌘↵ to post

[Dev By RayRay](https://hashnode.com/@devbyrayray)

[Aug 23, 2021](https://hashnode.com/posts/how-to-exclude-stylesheets-from-the-bundle-and-lazy-load-them-in-angular/61233081a5d08237f40e3131/comment/61234c25a5d08237f40e34e0)

Thanks for this! 💪

[Dharmen Shah](https://hashnode.com/@shhdharmen)

[Aug 23, 2021](https://hashnode.com/posts/how-to-exclude-stylesheets-from-the-bundle-and-lazy-load-them-in-angular/61233081a5d08237f40e3131/comment/61234c25a5d08237f40e34e0#reply-6123586ab115357df05f1220)

You are welcome 🙂

[Hetan Basu](https://hashnode.com/@HetanBasu)

[Aug 23, 2021](https://hashnode.com/posts/how-to-exclude-stylesheets-from-the-bundle-and-lazy-load-them-in-angular/61233081a5d08237f40e3131/comment/61234606a5d08237f40e33d5)

This is very helpful. Thanks for sharing!

[Dharmen Shah](https://hashnode.com/@shhdharmen)

[Aug 23, 2021](https://hashnode.com/posts/how-to-exclude-stylesheets-from-the-bundle-and-lazy-load-them-in-angular/61233081a5d08237f40e3131/comment/61234606a5d08237f40e33d5#reply-61234708e404793819cac127)

I am glad that it's helpful 😊
