Bundle Transformer: Clean-css

BundleTransformer.CleanCss contains one minifier-adapter for minification of CSS-code - CleanCssMinifier. CleanCssMinifier is based on the Clean-css version 4.0.12.

As a JS-engine is used the JavaScript Engine Switcher library. For correct working of this module is recommended to install the following NuGet packages: JavaScriptEngineSwitcher.Msie, JavaScriptEngineSwitcher.V8 or JavaScriptEngineSwitcher.ChakraCore. After package is installed and JS-engine is registered, need set a name of JavaScript engine (for example, MsieJsEngine) to the name attribute of /configuration/bundleTransformer/clean/jsEngine configuration element.

To make CleanCssMinifier is the default CSS-minifier, you need to make changes to the Web.config file. In the defaultMinifier attribute of the \configuration\bundleTransformer\core\css element must be set value equal to CleanCssMinifier.

Last edited Apr 14 at 5:56 PM by Taritsyn, version 35