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.
I fixed this by importing just the minified CSS file for a specific Component instead of importing the entire framework.
import { Button, Form } from "semantic-ui-react"; import "semantic-ui-css/components/button.min.css"; import "semantic-ui-css/components/form.min.css"; In this way you only import the related CSS classes for each component.
PurgeCSSin your build process to remove the unusedCSS- purgecss.com