akveo / akveo/nebular

Lazy load CSS/Styles for components

Open
#2,066 3 comments 7 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8.1k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

### Issue type
* [ x] Question

### Description
I have the following lines in the style.scss which increases the size of stylesheet in bundle significantly.
```
@import '~@nebular/theme/styles/globals';
@import '~@nebular/theme/styles/theming';
@import '~@nebular/theme/styles/themes/default';
```

I checked the file and found that styles are imported for all the components whether they are used or not. Is it possible to load only the styles needed/ or lazy load styles?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.