As far as I see, Bundle Transformer doesn't replace 'sourceMappingURL' with 'BundleTable.EnableOptimizations = true' during transformation, what leads to many console errors at our production site.
Could you add such feature?
BundleTransformer.CleanCss contains one minifier-adapter for minification of CSS-code -CleanCssMinifier. CleanCssMinifier is based on the Clean-css version 3.2.1.
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.V8 or JavaScriptEngineSwitcher.Msie (only in the ChakraJsRt mode). After package is installed, need set a name of JavaScript engine (for example,V8JsEngine) 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 theWeb.config file. In the defaultMinifier attribute of the \configuration\bundleTransformer\core\css element must be set value equal toCleanCssMinifier.
BundleTransformer.CoffeeScript contains translator-adapterCoffeeScriptTranslator (supports CoffeeScript version 1.9.2). This adapter makes translation of CoffeeScript-code to JS-code. Also contains HTTP-handlerCoffeeScriptAssetHandler, which is responsible for text output of translated CoffeeScript-asset.
As a JS-engine is used the JavaScript Engine Switcher library. For correct working of this module is recommended to install one of the following NuGet packages: JavaScriptEngineSwitcher.Msie or JavaScriptEngineSwitcher.V8. After package is installed, need set a name of JavaScript engine (for example,MsieJsEngine) to the name attribute of /configuration/bundleTransformer/coffeeScript/jsEngine configuration element.
To use a debugging HTTP-handlers in the IIS Classic mode, you need add to the /configuration/system.web/httpHandlers element of the Web.config file a following code:
<addpath="*.coffee"verb="GET"type="BundleTransformer.CoffeeScript.HttpHandlers.CoffeeScriptAssetHandler, BundleTransformer.CoffeeScript"/><addpath="*.litcoffee"verb="GET"type="BundleTransformer.CoffeeScript.HttpHandlers.CoffeeScriptAssetHandler, BundleTransformer.CoffeeScript"/><addpath="*.coffee.md"verb="GET"type="BundleTransformer.CoffeeScript.HttpHandlers.CoffeeScriptAssetHandler, BundleTransformer.CoffeeScript"/>
BundleTransformer.Handlebars contains translator-adapterHandlebarsTranslator (supports Handlebars version 3.0.2). This adapter makes translation of Handlebars-templates to JS-code. Also contains HTTP-handlerHandlebarsAssetHandler, which is responsible for text output of translated Handlebars-asset.
Files whose names start with an underscore are compiled as the globally defined partials (first underscore are removed from the template name).
As a JS-engine is used the JavaScript Engine Switcher library. For correct working of this module is recommended to install one of the following NuGet packages: JavaScriptEngineSwitcher.Msie or JavaScriptEngineSwitcher.V8. After package is installed, need set a name of JavaScript engine (for example,MsieJsEngine) to the name attribute of /configuration/bundleTransformer/handlebars/jsEngine configuration element.
To use a debugging HTTP-handlers in the IIS Classic mode, you need add to the /configuration/system.web/httpHandlers element of the Web.config file a following code:
<addpath="*.handlebars"verb="GET"type="BundleTransformer.Handlebars.HttpHandlers.HandlebarsAssetHandler, BundleTransformer.Handlebars"/><addpath="*.hbs"verb="GET"type="BundleTransformer.Handlebars.HttpHandlers.HandlebarsAssetHandler, BundleTransformer.Handlebars"/>
BundleTransformer.Autoprefixer contains one postprocessor-adapter for postprocessing of CSS-code -AutoprefixCssPostProcessor. AutoprefixCssPostProcessor is based on the Andrey Sitnik's Autoprefixer version 5.1.11.
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.V8 or JavaScriptEngineSwitcher.Msie (only in the ChakraJsRt mode). After package is installed, need set a name of JavaScript engine (for example,V8JsEngine) to the name attribute of /configuration/bundleTransformer/autoprefixer/jsEngine configuration element.
To make AutoprefixCssPostProcessor is one of the default CSS-postprocessors, you need to make changes to the Web.config file. In thedefaultPostProcessors attribute of \configuration\bundleTransformer\core\css element must be add AutoprefixCssPostProcessor to end of comma-separated list (for example, defaultPostProcessors="UrlRewritingCssPostProcessor,AutoprefixCssPostProcessor").
Additionally, you can specify the browser conditional expressions in the Web.config file (in the Visual Studio supported IntelliSense):
To clean CSS from any vendor prefixes, you just need to add the one conditional expression is equal tonone:
<configuration>… <bundleTransformerxmlns="http://tempuri.org/BundleTransformer.Configuration.xsd">… <autoprefixer><browsers><addconditionalExpression="none"/></browsers>… </autoprefixer>… </bundleTransformer>… </configuration>
BundleTransformer.UglifyJs contains one minifier-adapter for minification of JS-code -UglifyJsMinifier. UglifyJsMinifier is based on the Mihai Bazon's UglifyJS version 2.4.20.
As a JS-engine is used the JavaScript Engine Switcher library. For correct working of this module is recommended to install one of the following NuGet packages: JavaScriptEngineSwitcher.Msie or JavaScriptEngineSwitcher.V8. After package is installed, need set a name of JavaScript engine (for example,MsieJsEngine) to the name attribute of /configuration/bundleTransformer/uglify/jsEngine configuration element.
To make UglifyJsMinifier is the default JS-minifier, you need to make changes to theWeb.config file. In the defaultMinifier attribute of the \configuration\bundleTransformer\core\js element must be set value equal toUglifyJsMinifier.
BundleTransformer.CleanCss contains one minifier-adapter for minification of CSS-code -CleanCssMinifier. CleanCssMinifier is based on the Clean-css version 3.2.2.
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.V8 or JavaScriptEngineSwitcher.Msie (only in the ChakraJsRt mode). After package is installed, need set a name of JavaScript engine (for example,V8JsEngine) 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 theWeb.config file. In the defaultMinifier attribute of the \configuration\bundleTransformer\core\css element must be set value equal toCleanCssMinifier.