We currently do not apply any CSS optimization to our build output so we have some duplicated classes (due to css-module composition) and unused variable blocks as well as whitespace and non-shorthand style definitions.
Adding the optimize-css-assets-webpack-plugin webpack plugin for dist builds will achieve this for us.
Enhancement
We currently do not apply any CSS optimization to our build output so we have some duplicated classes (due to css-module composition) and unused variable blocks as well as whitespace and non-shorthand style definitions. Adding the
optimize-css-assets-webpack-plugin
webpack plugin for dist builds will achieve this for us.Example code