UglifyJS - Taritsyn/BundleTransformer GitHub Wiki
BundleTransformer.UglifyJs contains one minifier-adapter for minification of JS code - UglifyJsMinifier.
UglifyJsMinifier is based on the Mihai Bazon's UglifyJS version 2.8.29.
As a JS engine is used the JavaScript Engine Switcher library. For correct working of this module, you need to install one of the following NuGet packages:
- JavaScriptEngineSwitcher.ChakraCore
- JavaScriptEngineSwitcher.Jint
- JavaScriptEngineSwitcher.Msie (only in the Chakra modes)
- JavaScriptEngineSwitcher.V8
After package is installed and JS engine is registered, need set a name of JS engine (for example, MsieJsEngine) to the name attribute of /configuration/bundleTransformer/uglify/jsEngine configuration element in the Web.config file.
To make UglifyJsMinifier is the default JS minifier, you need to make changes to the Web.config file.
In the defaultMinifier attribute of /configuration/bundleTransformer/core/js element must be set value equal to UglifyJsMinifier.