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

Updated Wiki: Bundle Transformer: LESS

$
0
0

Bundle Transformer: LESS

BundleTransformer.Less contains translator-adapterLessTranslator (supports LESS version 2.5.0). This adapter makes translation of LESS-code to CSS-code. Also contains HTTP-handlerLessAssetHandler, which is responsible for text output of translated LESS-asset.

BundleTransformer.Less does not support: the string interpolation in file paths and loading of plugins.

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/less/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="*.less"verb="GET"type="BundleTransformer.Less.HttpHandlers.LessAssetHandler, BundleTransformer.Less"/>

Source code checked in, #ce435c5527e6

$
0
0
Version 1.9.54: In BundleTransformer.Less added support of LESS version 2.5.0.

Source code checked in, #8e977b457026

$
0
0
Version 1.9.55: 1. In BundleTransformer.CoffeeScript updated CoffeeScript to commit bd17cc9b3c; 2. In BundleTransformer.UglifyJs added support of UglifyJS version 2.4.19; 3. In BundleTransformer.CleanCss added support of Clean-css version 3.1.9.

Released: Bundle Transformer 1.9.55 (Apr 06, 2015)

$
0
0
Version: 1.9.55
Published: 4/6/2015

  1. In BundleTransformer.CoffeeScript updated CoffeeScript to commit bd17cc9b3c;
  2. In BundleTransformer.UglifyJs added support of UglifyJS version 2.4.19;
  3. In BundleTransformer.CleanCss added support of Clean-css version 3.1.9.

NuGet Packages

TranslatorsMinifiers

Created Release: Bundle Transformer 1.9.55 (Apr 06, 2015)

$
0
0
Version: 1.9.55
Published: 4/6/2015

  1. In BundleTransformer.CoffeeScript updated CoffeeScript to commit bd17cc9b3c;
  2. In BundleTransformer.UglifyJs added support of UglifyJS version 2.4.19;
  3. In BundleTransformer.CleanCss added support of Clean-css version 3.1.9.

NuGet Packages

TranslatorsMinifiers

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

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

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.

Updated Wiki: Additional reading and resources

$
0
0

Additional reading and resources

Microsoft ASP.NET Web Optimization Framework

Bundle Transformer

Grunt/Gulp

Grunt

Gulp


Updated Wiki: Home

$
0
0

Project Description

Bundle Transformer - a modular extension for System.Web.Optimization (also known as the Microsoft ASP.NET Web Optimization Framework). ClassesStyleTransformer and ScriptTransformer, included in the core of Bundle Transformer and implement interfaceIBundleTransform. They are intended to replace the standard classesCssMinify and JsMinify.

The main differences of StyleTransformer andScriptTransformer classes from a standard implementations: ability to exclude unnecessary assets when adding assets from a directory, does not produce the re-minification of pre-minified assets, support automatic transformation of relative paths to absolute in CSS-code (by using UrlRewritingCssPostProcessor), etc. These classes do not produce the minification of code in runtime, but this feature can be added by installing of minifier-modules (now available modules based onMicrosoft Ajax Minifier,YUI Compressor for .NET,Google Closure Compiler,Douglas Crockford's JSMin,Dean Edwards' Packer,Mihai Bazon's UglifyJS,Sergey Kryzhanovsky's CSSO (CSS Optimizer),WebGrease and Clean-css). In addition, you can also install translator-modules that implement the translation of code on intermediate languages (LESS,Sass, SCSS, CoffeeScript, TypeScript, Mustache (by usingHogan) and Handlebars). Apart from this, in the Bundle Transformer there is a third type of modules - postprocessors. Postprocessors runs after translators and before minifiers. Now available following postprocessors: URL rewriting CSS-postprocessor (included in core) and postprocessor-module based on the Andrey Sitnik's Autoprefixer.

This extension will help your web applications successfully pass a most part of the tests inYSlow.

NuGet Packages

Core

Translators

Postprocessors

Minifiers

Unofficial modules

Who's Using Bundle Transformer

If you use Bundle Transformer in some project, please send me a message so I can include it in this list:

Software

Websites

Bundle Transformer was created and is maintained by Andrey Taritsyn.

Source code checked in, #633c5e15cd60

$
0
0
Version 1.9.56: In BundleTransformer.Autoprefixer added support of Autoprefixer version 5.1.8.1.

Released: Bundle Transformer 1.9.56 (Apr 13, 2015)

Created Release: Bundle Transformer 1.9.56 (Apr 13, 2015)

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

Source code checked in, #b1e8a0f27bf2

$
0
0
Version 1.9.57: 1. In BundleTransformer.ConfigurationIntelliSense in Clean CSS-minifier settings added new definition for the `compatibility` property; 2. In BundleTransformer.CleanCss in configuration settings of CSS-minifier was changed type of `Compatibility` property from enumeration to string (default `*`). This change also gives fine grained control over the compatibility settings (for example, you can specify `ie8,+units.rem`).

Released: Bundle Transformer 1.9.57 (Apr 14, 2015)

$
0
0
Version: 1.9.57
Published: 4/14/2015

  1. In BundleTransformer.ConfigurationIntelliSense in Clean CSS-minifier settings added new definition for the `compatibility` property;
  2. In BundleTransformer.CleanCss in configuration settings of CSS-minifier was changed type of `Compatibility` property from enumeration to string (default `*`). This change also gives fine grained control over the compatibility settings (for example, you can specify `ie8,+units.rem`).

NuGet Packages

CoreMinifiers

Created Release: Bundle Transformer 1.9.57 (Apr 14, 2015)

$
0
0
Version: 1.9.57
Published: 4/14/2015

  1. In BundleTransformer.ConfigurationIntelliSense in Clean CSS-minifier settings added new definition for the `compatibility` property;
  2. In BundleTransformer.CleanCss in configuration settings of CSS-minifier was changed type of `Compatibility` property from enumeration to string (default `*`). This change also gives fine grained control over the compatibility settings (for example, you can specify `ie8,+units.rem`).

NuGet Packages

CoreMinifiers

Updated Wiki: Configuration settings

$
0
0

Configuration settings

Starting with version 1.2.1 Beta from the Web.config file has been removed settings of Bundle Transformer, which were default settings. Current settings of Bundle Transformer equivalent to following version of theWeb.config file:

<?xmlversion="1.0"encoding="utf-8"?><configuration><configSections><!-- Declaration of Bundle Transformer configuration section group --><sectionGroupname="bundleTransformer"><sectionname="core"type="BundleTransformer.Core.Configuration.CoreSettings, BundleTransformer.Core"/><sectionname="less"type="BundleTransformer.Less.Configuration.LessSettings, BundleTransformer.Less"/><sectionname="sassAndScss"type="BundleTransformer.SassAndScss.Configuration.SassAndScssSettings, BundleTransformer.SassAndScss"/><sectionname="coffeeScript"type="BundleTransformer.CoffeeScript.Configuration.CoffeeScriptSettings, BundleTransformer.CoffeeScript"/><sectionname="typeScript"type="BundleTransformer.TypeScript.Configuration.TypeScriptSettings, BundleTransformer.TypeScript"/><sectionname="hogan"type="BundleTransformer.Hogan.Configuration.HoganSettings, BundleTransformer.Hogan"/><sectionname="handlebars"type="BundleTransformer.Handlebars.Configuration.HandlebarsSettings, BundleTransformer.Handlebars"/><sectionname="autoprefixer"type="BundleTransformer.Autoprefixer.Configuration.AutoprefixerSettings, BundleTransformer.Autoprefixer"/><sectionname="microsoftAjax"type="BundleTransformer.MicrosoftAjax.Configuration.MicrosoftAjaxSettings, BundleTransformer.MicrosoftAjax"/><sectionname="yui"type="BundleTransformer.Yui.Configuration.YuiSettings, BundleTransformer.Yui"/><sectionname="closure"type="BundleTransformer.Closure.Configuration.ClosureSettings, BundleTransformer.Closure"/><sectionname="uglify"type="BundleTransformer.UglifyJs.Configuration.UglifySettings, BundleTransformer.UglifyJs"/><sectionname="packer"type="BundleTransformer.Packer.Configuration.PackerSettings, BundleTransformer.Packer"/><sectionname="csso"type="BundleTransformer.Csso.Configuration.CssoSettings, BundleTransformer.Csso"/><sectionname="webGrease"type="BundleTransformer.WG.Configuration.WgSettings, BundleTransformer.WG"/><sectionname="clean"type="BundleTransformer.CleanCss.Configuration.CleanSettings, BundleTransformer.CleanCss"/></sectionGroup><!-- /Declaration of Bundle Transformer configuration section group --><sectionGroupname="jsEngineSwitcher"><sectionname="core"type="JavaScriptEngineSwitcher.Core.Configuration.CoreConfiguration, JavaScriptEngineSwitcher.Core"/><sectionname="msie"type="JavaScriptEngineSwitcher.Msie.Configuration.MsieConfiguration, JavaScriptEngineSwitcher.Msie"/><sectionname="v8"type="JavaScriptEngineSwitcher.V8.Configuration.V8Configuration, JavaScriptEngineSwitcher.V8"/></sectionGroup></configSections><!-- Bundle Transformer configuration settings --><bundleTransformerxmlns="http://tempuri.org/BundleTransformer.Configuration.xsd"><coreenableTracing="false"jsFilesWithMicrosoftStyleExtensions="MicrosoftAjax.js,MicrosoftMvcAjax.js, MicrosoftMvcValidation.js,knockout-$version$.js"><cssdefaultPostProcessors="UrlRewritingCssPostProcessor"defaultMinifier="NullMinifier"usePreMinifiedFiles="true"combineFilesBeforeMinification="false"><translators><addname="NullTranslator"type="BundleTransformer.Core.Translators.NullTranslator, BundleTransformer.Core"enabled="false"/><addname="LessTranslator"type="BundleTransformer.Less.Translators.LessTranslator, BundleTransformer.Less"enabled="true"/><addname="SassAndScssTranslator"type="BundleTransformer.SassAndScss.Translators.SassAndScssTranslator, BundleTransformer.SassAndScss"enabled="true"/></translators><postProcessors><addname="UrlRewritingCssPostProcessor"type="BundleTransformer.Core.PostProcessors.UrlRewritingCssPostProcessor, BundleTransformer.Core"useInDebugMode="false"/><addname="AutoprefixCssPostProcessor"type="BundleTransformer.Autoprefixer.PostProcessors.AutoprefixCssPostProcessor, BundleTransformer.Autoprefixer"useInDebugMode="true"/></postProcessors><minifiers><addname="NullMinifier"type="BundleTransformer.Core.Minifiers.NullMinifier, BundleTransformer.Core"/><addname="MicrosoftAjaxCssMinifier"type="BundleTransformer.MicrosoftAjax.Minifiers.MicrosoftAjaxCssMinifier, BundleTransformer.MicrosoftAjax"/><addname="YuiCssMinifier"type="BundleTransformer.Yui.Minifiers.YuiCssMinifier, BundleTransformer.Yui"/><addname="KryzhanovskyCssMinifier"type="BundleTransformer.Csso.Minifiers.KryzhanovskyCssMinifier, BundleTransformer.Csso"/><addname="WgCssMinifier"type="BundleTransformer.WG.Minifiers.WgCssMinifier, BundleTransformer.WG"/><addname="CleanCssMinifier"type="BundleTransformer.CleanCss.Minifiers.CleanCssMinifier, BundleTransformer.CleanCss"/></minifiers><fileExtensions><addfileExtension=".css"assetTypeCode="Css"/><addfileExtension=".less"assetTypeCode="Less"/><addfileExtension=".sass"assetTypeCode="Sass"/><addfileExtension=".scss"assetTypeCode="Scss"/></fileExtensions></css><jsdefaultPostProcessors=""defaultMinifier="NullMinifier"usePreMinifiedFiles="true"combineFilesBeforeMinification="false"><translators><addname="NullTranslator"type="BundleTransformer.Core.Translators.NullTranslator, BundleTransformer.Core"enabled="false"/><addname="CoffeeScriptTranslator"type="BundleTransformer.CoffeeScript.Translators.CoffeeScriptTranslator, BundleTransformer.CoffeeScript"enabled="true"/><addname="TypeScriptTranslator"type="BundleTransformer.TypeScript.Translators.TypeScriptTranslator, BundleTransformer.TypeScript"enabled="true"/><addname="HoganTranslator"type="BundleTransformer.Hogan.Translators.HoganTranslator, BundleTransformer.Hogan"enabled="true"/><addname="HandlebarsTranslator"type="BundleTransformer.Handlebars.Translators.HandlebarsTranslator, BundleTransformer.Handlebars"enabled="true"/></translators><minifiers><addname="NullMinifier"type="BundleTransformer.Core.Minifiers.NullMinifier, BundleTransformer.Core"/><addname="MicrosoftAjaxJsMinifier"type="BundleTransformer.MicrosoftAjax.Minifiers.MicrosoftAjaxJsMinifier, BundleTransformer.MicrosoftAjax"/><addname="YuiJsMinifier"type="BundleTransformer.Yui.Minifiers.YuiJsMinifier, BundleTransformer.Yui"/><addname="ClosureRemoteJsMinifier"type="BundleTransformer.Closure.Minifiers.ClosureRemoteJsMinifier, BundleTransformer.Closure"/><addname="ClosureLocalJsMinifier"type="BundleTransformer.Closure.Minifiers.ClosureLocalJsMinifier, BundleTransformer.Closure"/><addname="CrockfordJsMinifier"type="BundleTransformer.JsMin.Minifiers.CrockfordJsMinifier, BundleTransformer.JsMin"/><addname="EdwardsJsMinifier"type="BundleTransformer.Packer.Minifiers.EdwardsJsMinifier, BundleTransformer.Packer"/><addname="UglifyJsMinifier"type="BundleTransformer.UglifyJs.Minifiers.UglifyJsMinifier, BundleTransformer.UglifyJs"/></minifiers><fileExtensions><addfileExtension=".js"assetTypeCode="JavaScript"/><addfileExtension=".coffee"assetTypeCode="CoffeeScript"/><addfileExtension=".litcoffee"assetTypeCode="LiterateCoffeeScript"/><addfileExtension=".coffee.md"assetTypeCode="LiterateCoffeeScript"/><addfileExtension=".ts"assetTypeCode="TypeScript"/><addfileExtension=".mustache"assetTypeCode="Mustache"/><addfileExtension=".handlebars"assetTypeCode="Handlebars"/><addfileExtension=".hbs"assetTypeCode="Handlebars"/></fileExtensions></js><assetHandlerdisableServerCache="false"serverCacheDurationInMinutes="15"disableClientCache="false"/></core><lessuseNativeMinification="false"ieCompat="true"strictMath="false"strictUnits="false"dumpLineNumbers="None"javascriptEnabled="true"globalVariables=""modifyVariables=""><jsEnginename=""/></less><sassAndScssuseNativeMinification="false"lineNumbers="false"traceSelectors="false"debugInfo="false"/><coffeeScriptbare="true"><jsEnginename=""/></coffeeScript><typeScriptnoEmit="false"noEmitOnError="false"noImplicitAny="false"noLib="false"preserveConstEnums="false"removeComments="false"stripInternal="false"suppressImplicitAnyIndexErrors="false"target="EcmaScript3"><jsEnginename=""/></typeScript><hoganuseNativeMinification="false"variable="templates"namespace=""delimiters=""><jsEnginename=""/></hogan><handlebarsnamespace="Handlebars.templates"rootPath=""knownHelpers=""knownHelpersOnly="false"data="true"><jsEnginename=""/></handlebars><autoprefixercascade="true"safe="false"remove="true"><browsers><addconditionalExpression="> 1%" /><addconditionalExpression="last 2 versions"/><addconditionalExpression="Firefox ESR"/><addconditionalExpression="Opera 12.1"/></browsers><jsEnginename=""/></autoprefixer><microsoftAjax><cssallowEmbeddedAspNetBlocks="false"blocksStartOnSameLine="NewLine"ignoreAllErrors="false"ignoreErrorList=""indentSize="4"lineBreakThreshold="2147482647"outputMode="SingleLine"preprocessorDefineList=""termSemicolons="false"colorNames="Hex"commentMode="Important"minifyExpressions="true"removeEmptyBlocks="true"severity="0"/><jsallowEmbeddedAspNetBlocks="false"blocksStartOnSameLine="NewLine"ignoreAllErrors="false"ignoreErrorList=""indentSize="4"lineBreakThreshold="2147482647"outputMode="SingleLine"preprocessorDefineList=""termSemicolons="false"alwaysEscapeNonAscii="false"amdSupport="false"collapseToLiteral="true"constStatementsMozilla="false"debugLookupList="Debug,$Debug,WAssert,Msn.Debug,Web.Debug"errorIfNotInlineSafe="false"evalLiteralExpressions="true"evalTreatment="Ignore"ignoreConditionalCompilation="false"ignorePreprocessorDefines="false"inlineSafeStrings="true"knownGlobalNamesList=""localRenaming="CrunchAll"macSafariQuirks="true"manualRenamesProperties="true"noAutoRenameList="$super"preserveFunctionNames="false"preserveImportantComments="true"quoteObjectLiteralProperties="false"removeFunctionExpressionNames="true"removeUnneededCode="true"renamePairs=""reorderScopeDeclarations="true"strictMode="false"stripDebugStatements="true"severity="0"/></microsoftAjax><yui><csscompressionType="Standard"removeComments="true"lineBreakPosition="-1"/><jscompressionType="Standard"obfuscateJavascript="true"preserveAllSemicolons="false"disableOptimizations="false"ignoreEval="false"severity="0"lineBreakPosition="-1"encoding="UTF8"threadCulture="en-us"/></yui><closure><js><remotecharset=""closureCompilerServiceApiUrl="http://closure-compiler.appspot.com/compile"compilationLevel="Simple"excludeDefaultExterns="false"language="EcmaScript3"prettyPrint="false"useTypesForOptimization="false"severity="0"/><localacceptConstKeyword="false"allowEs6Output="false"angularPass="false"charset=""closureCompilerApplicationPath=""compilationLevel="Simple"definitionList=""errorList=""exportLocalPropertyDefinitions="false"extraAnnotationNameList=""generateExports="false"javaVirtualMachinePath=""languageInput="EcmaScript3"languageOutput="None"prettyPrint="false"processClosurePrimitives="false"processJqueryPrimitives="false"singleQuotes="false"thirdParty="true"transpileOnly="false"turnOffWarningClassList=""useOnlyCustomExterns="false"useTypesForOptimization="false"warningList=""severity="0"/></js></closure><packer><jsshrinkVariables="true"base62Encode="false"/><jsEnginename=""/></packer><uglify><jsscrewIe8="false"keepFunctionNames="false"severity="0"><parsingstrict="false"bareReturns="false"/><compressioncompress="true"sequences="true"propertiesDotNotation="true"deadCode="true"dropDebugger="true"unsafe="false"conditionals="true"comparisons="true"evaluate="true"booleans="true"loops="true"unused="true"hoistFunctions="true"keepFunctionArgs="false"hoistVars="false"ifReturn="true"joinVars="true"cascade="true"globalDefinitions=""pureGetters="false"pureFunctions=""dropConsole="false"angular="false"/><manglingmangle="true"except=""eval="false"sort="false"topLevel="false"/><codeGenerationbeautify="false"indentLevel="4"indentStart="0"quoteKeys="false"spaceColon="true"asciiOnly="false"inlineScript="false"width="80"maxLineLength="32000"bracketize="false"semicolons="true"comments=""preserveLine="false"unescapeRegexps="false"quoteStyle="Auto"/></js><jsEnginename=""/></uglify><csso><cssdisableRestructuring="false"/><jsEnginename=""/></csso><webGrease><cssshouldMinify="true"ejectCharset="true"/></webGrease><clean><cssadvanced="true"aggressiveMerging="true"compatibility="*"keepBreaks="false"keepSpecialComments="KeepAll"mediaMerging="true"restructuring="true"roundingPrecision="2"shorthandCompacting="true"severity="0"/><jsEnginename=""/></clean></bundleTransformer><!-- /Bundle Transformer configuration settings --><jsEngineSwitcherxmlns="http://tempuri.org/JavaScriptEngineSwitcher.Configuration.xsd"><core><engines><addname="MsieJsEngine"type="JavaScriptEngineSwitcher.Msie.MsieJsEngine, JavaScriptEngineSwitcher.Msie"/><addname="V8JsEngine"type="JavaScriptEngineSwitcher.V8.V8JsEngine, JavaScriptEngineSwitcher.V8"/></engines></core><msieengineMode="Auto"/></jsEngineSwitcher><system.webServer><handlers><!-- Declaration of Bundle Transformer HTTP-handlers --><addname="LessAssetHandler"path="*.less"verb="GET"type="BundleTransformer.Less.HttpHandlers.LessAssetHandler, BundleTransformer.Less"resourceType="File"preCondition=""/><addname="SassAssetHandler"path="*.sass"verb="GET"type="BundleTransformer.SassAndScss.HttpHandlers.SassAndScssAssetHandler, BundleTransformer.SassAndScss"resourceType="File"preCondition=""/><addname="ScssAssetHandler"path="*.scss"verb="GET"type="BundleTransformer.SassAndScss.HttpHandlers.SassAndScssAssetHandler, BundleTransformer.SassAndScss"resourceType="File"preCondition=""/><addname="CoffeeScriptAssetHandler"path="*.coffee"verb="GET"type="BundleTransformer.CoffeeScript.HttpHandlers.CoffeeScriptAssetHandler, BundleTransformer.CoffeeScript"resourceType="File"preCondition=""/><addname="LiterateCoffeeScriptAssetHandler"path="*.litcoffee"verb="GET"type="BundleTransformer.CoffeeScript.HttpHandlers.CoffeeScriptAssetHandler, BundleTransformer.CoffeeScript"resourceType="File"preCondition=""/><addname="CoffeeScriptMarkdownAssetHandler"path="*.coffee.md"verb="GET"type="BundleTransformer.CoffeeScript.HttpHandlers.CoffeeScriptAssetHandler, BundleTransformer.CoffeeScript"resourceType="File"preCondition=""/><addname="TypeScriptAssetHandler"path="*.ts"verb="GET"type="BundleTransformer.TypeScript.HttpHandlers.TypeScriptAssetHandler, BundleTransformer.TypeScript"resourceType="File"preCondition=""/><addname="MustacheAssetHandler"path="*.mustache"verb="GET"type="BundleTransformer.Hogan.HttpHandlers.HoganAssetHandler, BundleTransformer.Hogan"resourceType="File"preCondition=""/><addname="HandlebarsAssetHandler"path="*.handlebars"verb="GET"type="BundleTransformer.Handlebars.HttpHandlers.HandlebarsAssetHandler, BundleTransformer.Handlebars"resourceType="File"preCondition=""/><addname="HbsAssetHandler"path="*.hbs"verb="GET"type="BundleTransformer.Handlebars.HttpHandlers.HandlebarsAssetHandler, BundleTransformer.Handlebars"resourceType="File"preCondition=""/><!-- /Declaration of Bundle Transformer HTTP-handlers --></handlers><security><requestFiltering><hiddenSegments><addsegment="ClearScript.V8"/></hiddenSegments></requestFiltering></security></system.webServer></configuration>

If you install the BundleTransformer.ConfigurationIntelliSense package, then while editing a Web.config file will be supported IntelliSense for the bundleTransformer configuration section (implemented by using XML Schema, which is located in theBundleTransformer.Configuration.xsd file):

IntelliSense support when editing the  bundleTransformer configuration section in the Web.config file

New Comment on "Bundle Transformer: Handlebars"

$
0
0
Can you provide further details on how to exactly compile .handlebars to .js?

New Post: MicrosoftAjaxJsMinifier .map file configuration

$
0
0
Hi,

I agree that writing to the filesystem for the sourcemap is not a great solution for this problem. However, I recently learned you can add your sourcemap files as base64-encoded urls to the minified file:

Here's a javascript thing that does it:
//@ sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmb28uanMiLCJiYXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O1VBQ0c7Ozs7Ozs7Ozs7Ozs7O3NCQ0RIO3NCQUNBIn0=
This way you can embed it in the minified file itself and everything fits in the standard bundling/minification pipeline.

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

Could you add such feature?
Viewing all 2358 articles
Browse latest View live


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