css-mangle-webpack-plugin
Version:
This webpack plugin package is a CSS mangler that globally optimizes and shortens identifier names.
45 lines (33 loc) • 2.37 kB
Markdown
- Support Custom Property Registration of CSS. _(e.g. @property --background { ... })_
- Fixed bugs about transform and handler.
- Fixed to identify abnormal or non-idiomatic CSS variable declarations.
- Added a plugin option `bundleStage` to CSSMangleWebpackPlugin.
- Added a plugin option `CSSVariableManglerOptions` of `variableName` of `mangle` to CSSMangleWebpackPlugin.
- Fixed for overall modularization to the webpack plugin about codes and logic.
- Fixed to transform variables using even upper-case alphabets.
- Added undeclared into options property, this is whether an undeclared identifier in this webpack plugin would still be considered for minification.
- Added debugLogs into options property, This is whether about primarily an option for a user to output additional information to the CMD.
- Added minify into options property, This is whether to use additional features, annotation removal, and optimization to turn rgb into hex.
- Updated about minify into options property.
- Fixed to share related [ManglerContext] instances with each other in the compilation assets files.
- Added removing escape-sequence optional feature into about minify options.
- Fixed the way of export default about Typescirpt.
- Added syntax parsing about standard APIs, e.g. document.getElementById() and document.getElementsByClassName()
- Added syntax parsing about standard APIs, e.g. document.querySelector() and document.querySelectorAll()
- Fixed an issue where the `minify` option did not correctly handle CSS syntax such as , and .a .b.
- Fixed issues related to high resource consumption, extended processing time, and unstable builds caused by identifying globally common CSS-related syntax patterns. Modified the process to handle different file types separately.
- Fixed an issue where the minify option only recognized opacity values between 0 and 1 when parsing `rgb` or `rgba` syntax.
- Fixed an issue where the logic incorrectly determined that there was no need to explicitly define the opacity value when it was 0%. Now, the explicit value is only omitted when the opacity is 100%.