Stylable core optimizer
npm install @stylable/optimizer
Performs optimization when running Stylable in production mode.
Performs optimization such as removing Stylable directives, comments, unused components, empty rules to Stylable's output based on the provided configuration.
The StylableOptimizer is also responsible for invoking the StylableClassNameOptimizer and StylableNamespaceOptimizer based on its configuration.
Optimizes class names based on usage to a shorter format, being careful not to affect states (which need to stay un-optimized at the moment) and global rules.
Optimizes namespaces to a shorter format.