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

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: Thank you so much, Taritsyn! It's all working now :)

Edited 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!


Released: Bundle Transformer 1.9.60 (Apr 29, 2015)

Created Release: Bundle Transformer 1.9.60 (Apr 29, 2015)

Updated Wiki: Bundle Transformer: Handlebars

$
0
0

Bundle Transformer: Handlebars

BundleTransformer.Handlebars contains translator-adapterHandlebarsTranslator (supports Handlebars version 3.0.3). 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: 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.6.

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, #a819bfa74ed3

$
0
0
Version 1.9.60: 1. In BundleTransformer.Handlebars added support of Handlebars version 3.0.3; 2. In BundleTransformer.CleanCss added support of Clean-css version 3.2.6.

Released: Bundle Transformer 1.9.61 (May 03, 2015)


Created Release: Bundle Transformer 1.9.61 (May 03, 2015)

Updated Wiki: Bundle Transformer: TypeScript

$
0
0

Bundle Transformer: TypeScript

BundleTransformer.TypeScript contains translator-adapterTypeScriptTranslator (supports TypeScript version 1.5.0 Beta). This adapter makes translation of TypeScript-code to JS-code. Also contains HTTP-handlerTypeScriptAssetHandler, which is responsible for text output of translated TypeScript-asset.

BundleTransformer.TypeScript does not support external modules (CommonJS and AMD modules).

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/typeScript/jsEngine configuration element.

To use a debugging HTTP-handler in the IIS Classic mode, you need add to the /configuration/system.web/httpHandlers element of the Web.config file a following code:

<addpath="*.ts"verb="GET"type="BundleTransformer.TypeScript.HttpHandlers.TypeScriptAssetHandler, BundleTransformer.TypeScript"/>

When using the types declared in other files, you need add to code the references to these files by using the "reference" comments, as shown in the following example:

/// <reference path="./jquery.d.ts" />/// <reference path="./ITranslatorBadge.d.ts" />

module TranslatorBadges {
   export class TranslatorBadge implements ITranslatorBadge {
      …
   }
}

If you are add TypeScript-files to the bundle by using the IncludeDirectory method, then I recommend you to use instance of the ScriptDependencyOrderer class from the Arraybracket.Bundling project as a bundle orderer:

namespace BundleTransformer.Example.Mvc
{
   …
   using Arraybracket.Bundling;publicclass BundleConfig
   {
      publicstaticvoid RegisterBundles(BundleCollection bundles)
      {
         …
         var tsBundle = new Bundle("~/Bundles/TypeScripts");
         tsBundle.IncludeDirectory("~/Scripts/ts/", "*.ts", true);
         tsBundle.Builder = nullBuilder;
         tsBundle.Transforms.Add(new ScriptTransformer(new []{ "*.d.ts" }));
         tsBundle.Orderer = newScriptDependencyOrderer();
         bundles.Add(tsBundle);
         …
      }
   }
}

This will allow to properly sort TypeScript-files in the bundle (on the basis of information, that obtained from the "reference" comments).

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.7.

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, #ea6dee2f10d4

$
0
0
Version 1.9.61: 1. In BundleTransformer.TypeScript added support of TypeScript version 1.5.0 Beta; 2. In BundleTransformer.CleanCss added support of Clean-css version 3.2.7.

New Comment on "Bundle Transformer: Sass and SCSS"

$
0
0
Hi, There is any workaround for string interpolation in file paths? thanks in advance.

Created Unassigned: I think I have found a memory leak / issue in .less handler [104]

$
0
0

Whilst using NetBrains dotMemory I have noticed that the content of the last file to be @import(ed) is held in memory on the application.

I have temporarily fixed this by appending ....

@import (less) '/empty.css';

To the end of the CSS.

This seems to improve the issue, but it would be nice if this were not needed.

Created Unassigned: .less disable cache [105]

$
0
0
I have modified my application to call .less and then write a physical .css file, on application start. It then splits large files into smaller files to assist with i.e.9 and below limits on CSS instructions.

Problem is the .less files are held in cache memory, but are no longer required using this technique.

Is it possible to disable memory caching for .less files ?

I have lots of sites running using this on a single server and memory is stretched.




Commented Unassigned: .less disable cache [105]

$
0
0
I have modified my application to call .less and then write a physical .css file, on application start. It then splits large files into smaller files to assist with i.e.9 and below limits on CSS instructions.

Problem is the .less files are held in cache memory, but are no longer required using this technique.

Is it possible to disable memory caching for .less files ?

I have lots of sites running using this on a single server and memory is stretched.



Comments: Hello, Trevor! Use the following settings: ``` <?xml version="1.0" encoding="utf-8"?> <configuration> ... <bundleTransformer xmlns="http://tempuri.org/BundleTransformer.Configuration.xsd"> <core ...> ... <assetHandler disableServerCache="true" /> </core> </bundleTransformer> ... </configuration> ```

Created Unassigned: SASS Takes forever to compile [106]

$
0
0
Just compiling bootsrap-sass styles takes minutes. Same project takes less than a second to build as a grunt task.

Reviewed: Bundle Transformer 1.9.61 (May 05, 2015)

$
0
0
Rated 2 Stars (out of 5) - Terrible SASS performance

Reviewed: Bundle Transformer 1.9.61 (May 05, 2015)

$
0
0
Rated 3 Stars (out of 5) - Terrible SASS performance

New Comment on "Bundle Transformer: Sass and SCSS"

$
0
0
Any alternatives to the ancient IronRuby?
Viewing all 2358 articles
Browse latest View live


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