bundletransformer

BundleTransformer LibSass Could not be found error

╄→гoц情女王★ 提交于 2019-12-24 11:15:52
问题 I want to use BundleTransformer. I've followed all the steps stated in the docs, but still don't work. I've installed: BundleTransformer.SassAndScss BundleTransformer.Autoprefixer LisSassHost LibSassHost.Native.win-x64 JavaScriptEngineSwitcher.V8 Here is my config: <bundleTransformer xmlns="http://tempuri.org/BundleTransformer.Configuration.xsd"> <autoprefixer cascade="true"> <jsEngine name="V8JsEngine" /> <browsers> <add conditionalExpression="> 5%" /> <add conditionalExpression="last 2

ASP MVC Less file gives: Exception has been thrown by the target of an invocation

亡梦爱人 提交于 2019-12-23 20:17:57
问题 I have a simple asp.net mvc 4 site that uses less files. When i run it on my local pc it works fine, but when i publish it to the server I get te following error: During the output text content of processed asset an unknown error has occurred. See more details: Exception has been thrown by the target of an invocation. stacktrace: [HttpException (0x80004005): During the output text content of processed asset an unknown error has occurred. See more details: Exception has been thrown by the

How to make BundleTransformer work on Windows Server Core

不羁岁月 提交于 2019-12-13 01:35:02
问题 Ever since we found dotLess stopped working for us our ASP.NET MVC project has been using BundleTransformer for our LESS bundling and minification. We are trying to migrate our CI build agents to use Windows Server Core (headless) and away from Windows Server Standard. When we did this we started receiving Internal Server Errors when trying to hit our pages. This seems to be blowing up inside of BundleTransformer. We initially were using BundleTransformer with http://www.nuget.org/packages

Sass SCSS by BundleTranslator

六月ゝ 毕业季﹏ 提交于 2019-12-11 12:47:17
问题 I have set up the BundleTranslator in my MVC 5 project via NuGet (BundleTransformer.SassAndScss v1.9.96 with the Core and LibSassHost components). Next I have added the bundle reference to my View.cshtml @Styles.Render("~/Content/sass") and redefined the BundleConfig.cs : var nullOrderer = new NullOrderer(); var commonStylesBundle = new CustomStyleBundle("~/Content/sass"); commonStylesBundle.Include("~/Content/Custom/the-style.scss"); commonStylesBundle.Orderer = nullOrderer; bundles.Add

How to remove comments with BundleTransformer YuiJsMinifier

一笑奈何 提交于 2019-12-10 14:44:32
问题 I am using BundleTransformer to minify css and js resources <yui> <css compressionType="Standard" removeComments="true" lineBreakPosition="-1" /> <js compressionType="Standard" obfuscateJavascript="true" preserveAllSemicolons="false" disableOptimizations="false" ignoreEval="false" severity="0" lineBreakPosition="-1" encoding="UTF8" threadCulture="en-us" /> </yui> As you can see for css it is possible to specify removeComments="true" But in js there is no such option. I red that YUI js

What is the proper use of IItemTransform for correcting paths in CSS Bundling with ASP.NET Web Optimization and BundleTransformer?

安稳与你 提交于 2019-12-06 02:46:33
问题 I'm presently working on a project that uses the ASP.NET Web Optimization library (v 1.1.0-Beta1) in conjunction with the Bundle Transformer extension (v 1.7.3-Beta1 for core, 1.7.0-Beta1 for LESS) which is used to convert LESS into CSS. Based on web searches paths within CSS (and less) appear to be a common issue, in most cases it is recommended to manually modify the CSS and be done with it. However, due to differences between our development and production environment, and not owning the

What is the proper use of IItemTransform for correcting paths in CSS Bundling with ASP.NET Web Optimization and BundleTransformer?

梦想与她 提交于 2019-12-04 07:19:52
I'm presently working on a project that uses the ASP.NET Web Optimization library (v 1.1.0-Beta1) in conjunction with the Bundle Transformer extension (v 1.7.3-Beta1 for core, 1.7.0-Beta1 for LESS) which is used to convert LESS into CSS. Based on web searches paths within CSS (and less) appear to be a common issue, in most cases it is recommended to manually modify the CSS and be done with it. However, due to differences between our development and production environment, and not owning the affected CSS such a solution is not feasible. Two solutions seem to exist. The first is to overlay the

BundleTransformer.Less inject variables depending on context/request

烈酒焚心 提交于 2019-12-03 22:23:00
问题 We would like the use the bundling mechanism of System.Web.Optimization in combination with the Less transformer. The problem is that the same application/server serves pages for different branded websites. So depending on the 'SiteContext' the same .less files are used but different values should be used by the .less variables. So we want the (re)use the same less files but with different variables depending on the context of the request. I tried a couple of different theories: In all 3

BundleTransformer.Less inject variables depending on context/request

流过昼夜 提交于 2019-12-01 00:32:05
We would like the use the bundling mechanism of System.Web.Optimization in combination with the Less transformer. The problem is that the same application/server serves pages for different branded websites. So depending on the 'SiteContext' the same .less files are used but different values should be used by the .less variables. So we want the (re)use the same less files but with different variables depending on the context of the request. I tried a couple of different theories: In all 3 cases I setup different bundles depending on the SiteContext. 1 inject an @import directive with the themed