Quantcast
Channel: Bundle Transformer - a modular extension for ASP.NET Web Optimization Framework
Viewing all 2358 articles
Browse latest View live

Edited Unassigned: Remove sourceMappingURL from min.js files [102]

$
0
0
Hello,

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?

Commented Unassigned: Remove sourceMappingURL from min.js files [102]

$
0
0
Hello,

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?
Comments: Hello, Alexey! Can you give examples of these errors.

Commented Unassigned: Remove sourceMappingURL from min.js files [102]

$
0
0
Hello,

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?
Comments: It is just an ordinary 404 error when opening browser console. ``` GET http://company.local/Scripts/angular-resource.min.js.map; 404 (Not Found) ```

Commented Unassigned: Remove sourceMappingURL from min.js files [102]

$
0
0
Hello,

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?
Comments: Hello, Alexey! In principle, you can implement this functionality in the form of 2 postprocessors. I have an [article in Russian](https://taritsyn.wordpress.com/2014/09/22/bundle-transformer-letnie-obnovlenija/), which is described how to do it.

Source code checked in, #86a3f6342fc5

$
0
0
Version 1.9.58: In BundleTransformer.CleanCss added support of Clean-css version 3.2.1.

Released: Bundle Transformer 1.9.58 (Apr 20, 2015)

Created Release: Bundle Transformer 1.9.58 (Apr 20, 2015)

Updated Wiki: Bundle Transformer: Clean-css

$
0
0

Bundle Transformer: Clean-css

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.


Source code checked in, #f202f0bd281c

$
0
0
Version 1.9.59: 1. In BundleTransformer.CoffeeScript added support of CoffeeScript version 1.9.2; 2. In BundleTransformer.Handlebars added support of Handlebars version 3.0.2; 3. In BundleTransformer.Autoprefixer added support of Autoprefixer version 5.1.11; 4. In BundleTransformer.UglifyJs added support of UglifyJS version 2.4.20; 5. In BundleTransformer.CleanCss added support of Clean-css version 3.2.2.

Released: Bundle Transformer 1.9.59 (Apr 21, 2015)

$
0
0
Version: 1.9.59
Published: 4/21/2015

  1. In BundleTransformer.CoffeeScript added support of CoffeeScript version 1.9.2;
  2. In BundleTransformer.Handlebars added support of Handlebars version 3.0.2;
  3. In BundleTransformer.Autoprefixer added support of Autoprefixer version 5.1.11;
  4. In BundleTransformer.UglifyJs added support of UglifyJS version 2.4.20;
  5. In BundleTransformer.CleanCss added support of Clean-css version 3.2.2.

NuGet Packages

TranslatorsPostprocessorsMinifiers

Created Release: Bundle Transformer 1.9.59 (Apr 21, 2015)

$
0
0
Version: 1.9.59
Published: 4/21/2015

  1. In BundleTransformer.CoffeeScript added support of CoffeeScript version 1.9.2;
  2. In BundleTransformer.Handlebars added support of Handlebars version 3.0.2;
  3. In BundleTransformer.Autoprefixer added support of Autoprefixer version 5.1.11;
  4. In BundleTransformer.UglifyJs added support of UglifyJS version 2.4.20;
  5. In BundleTransformer.CleanCss added support of Clean-css version 3.2.2.

NuGet Packages

TranslatorsPostprocessorsMinifiers

Updated Wiki: Bundle Transformer: CoffeeScript

$
0
0

Bundle Transformer: CoffeeScript

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"/>

Updated Wiki: Bundle Transformer: Handlebars

$
0
0

Bundle Transformer: Handlebars

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"/>

Updated Wiki: Bundle Transformer: Autoprefixer

$
0
0

Bundle Transformer: Autoprefixer

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):

BundleTransformer.Autoprefixer options in the Web.config file

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>

Updated Wiki: Bundle Transformer: UglifyJS

$
0
0

Bundle Transformer: UglifyJS

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.


Updated Wiki: Bundle Transformer: Clean-css

$
0
0

Bundle Transformer: Clean-css

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.

Commented Unassigned: Remove sourceMappingURL from min.js files [102]

$
0
0
Hello,

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?
Comments: I took a note, thank you. BTW I have read that article at habrahabr several weeks ago. Now we fix this problem in a slightly rough way - remove 'sourceMappingURL' from the source minified files. We consider the problem as quite insignificant matter, that is hardly worth seeking an alternate solution. On the other hand, I see no obstacles in removing 'sourceMappingURL' by Bundle Transformer during transformation with the 'EnableOptimizations' set to true. At least, in doing it optionally.

Commented Unassigned: Remove sourceMappingURL from min.js files [102]

$
0
0
Hello,

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?
Comments: Why you didn't want to write 2 postprocessors?

Created Unassigned: LESS not being transformed [103]

$
0
0
Hi, I've installed BundleTransformer.Less and JavaScriptEngineSwitcher.Msie. My .less file is being included correctly, and it's being minified correctly (in release mode), but the LESS to CSS transform is not being applied. My .less file contains a single @import directive. That file is also being served directly as a download, rather than displayed in the browser like a .css file would be.

I have a previous project using an earlier version of BundleTransformer which works fine, but I can't spot any significant differences if I compare them.

BundleConfig.cs and web.config are attached. Can you tell me what I've done wrong, please? Thanks!


Commented Unassigned: LESS not being transformed [103]

$
0
0
Hi, I've installed BundleTransformer.Less and JavaScriptEngineSwitcher.Msie. My .less file is being included correctly, and it's being minified correctly (in release mode), but the LESS to CSS transform is not being applied. My .less file contains a single @import directive. That file is also being served directly as a download, rather than displayed in the browser like a .css file would be.

I have a previous project using an earlier version of BundleTransformer which works fine, but I can't spot any significant differences if I compare them.

BundleConfig.cs and web.config are attached. Can you tell me what I've done wrong, please? Thanks!


Comments: Hello, Colonel32! > My .less file is being included correctly, and it's being minified correctly (in release mode), but the LESS to CSS transform is not being applied. This is caused by an error in `BundleConfig.cs` file: ``` var css = new StyleBundle(LessCSS); css.Include("~/Content/styles.less"); css.Builder = nullBuilder; css.Transforms.Add(cssTransformer); css.Transforms.Add(cssMinifier); css.Orderer = nullOrderer; bundles.Add(css); ``` In this case, instead of a `StyleBundle` class you need to use `Bundle` class. I recommend you to read [“Examples of usage”](https://bundletransformer.codeplex.com/wikipage?title=Examples%20of%20usage) section of documentation. > My .less file contains a single @import directive. That file is also being served directly as a download, rather than displayed in the browser like a .css file would be. It is possible that you are using a Visual Studio Development Server or old version of IIS, which do not support the IIS integration mode. You need to configure `LessAssetHandler` to run in the IIS classic mode (see [“Bundle Transformer: LESS”](https://bundletransformer.codeplex.com/wikipage?title=Bundle%20Transformer%3a%20LESS) section of documentation).
Viewing all 2358 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>