Alexandru Lupu
Alexandru Lupu

Reputation: 311

Remove unused CSS from Semantic UI React

Is there a way to remove the unused CSS imported from semantic-ui-css/semantic.min.css?

Checking the Coverage tab in Developer Tools, it seems that this file contains 97.8% unused bytes.

Coverage tab image below: enter image description here

Upvotes: 1

Views: 656

Answers (1)

Alexandru Lupu
Alexandru Lupu

Reputation: 311

I fixed this by importing just the minified CSS file for a specific Component instead of importing the entire framework.

Upvotes: 1

Related Questions