Questions tagged [microsoft-ajax-minifier]
41 questions
0
votes
2 answers
Microsoft Ajax Minifier - TFS 2010 Workflow - AjaxMin in the TFS Build
The AjaxMin project at http://ajaxmin.codeplex.com/ is great and very useful.
What I have previously used is the code option of AjaxMin where I would manually scan a directory for all JS and CSS files, and minify the contents, then rewrite the…

Issa Fram
- 2,556
- 7
- 33
- 63
0
votes
0 answers
Microsoft Ajax Minifier 4, how to change output folder?
I would like to change the output folder of the ajax minifier so that when i build my project, all javascripts end up in the output folder instead of a copy next to the original file.

Patrick
- 5,442
- 9
- 53
- 104
0
votes
1 answer
Ajax Minifier Breaks javascript on minification
I am using ajax minifier to reduce code requests and HTML overhead, and so far its working fine with CSS file. But when I try to use the minified output of js files my HTML page stops working.
Here are the js files I include in combined…

Alok
- 808
- 13
- 40
0
votes
1 answer
Microsoft Ajax Minifier doesn't shorten my function names
I declare the following javascript
window.myApp = {};
myApp.myVeryLongFunctionName = function()
{
...
};
Then I minify the javascript with the following (in C#)
var minifiedCode = minifier.MinifyJavaScript(code, new CodeSettings
{
…

Adrian Rosca
- 6,922
- 9
- 40
- 57
0
votes
1 answer
Microsoft Ajax Minifier output path access error when called from Python
I'm calling Microsoft Ajax Minifier from Python like so:
minifyArguments = ["C:\Program Files (x86)\Microsoft\Microsoft Ajax Minifier\AjaxMin.exe"]
for f in filesToMinify:
…

Jerry
- 1
0
votes
1 answer
Map flag doesn't seem to work in manifest file
My arguments node looks like:
-clobber -map:v3 app\script.min.js.map
My min file is: script.min.js and the output node is:

user648931
- 503
- 5
- 18
0
votes
1 answer
AjaxMin task has been declared or used incorrectly, or failed during construction
I'm trying to add Microsoft's AjaxMin to VS2012 project and I'm not really sure what I'm doing. I think I'm missing something obvious.
I copied the code from the tutorial here (http://ajaxmin.codeplex.com/wikipage?title=AjaxMinTask)
And I've tried…

user1521567
- 1,743
- 3
- 21
- 31
0
votes
1 answer
Using the RES command line parameter with the ajaxmin task
How do I use the RES switch in the Ajaxmin MSBuild task? I had trouble doing it, even though I got it working in command line. I'm guessing that I'm using the wrong syntax.
This is what I use in command line:
ajaxmin.exe Combined.min.js -RES:Strings…

user648931
- 503
- 5
- 18
0
votes
1 answer
default minification using ajaxmin (no changing variable, function names - remove only comments and white space)
I am using microsoft ajax minifier and I am using below piece of code to minify CSS and JS files, I wish to remove only comments and white space. I do not wish to rename or change the variable name or function name.
how can I use the options for…

Kalish
- 803
- 1
- 8
- 18
0
votes
1 answer
Ajax Minifier: JS file duplication when combining via project file / msbuild task
I've been attempting to get minification and bundling working on my MVC3 project for some time, trying out quite a few different compressors and methods. I've finally settled on using Microsoft Ajax Minifier via an msbuild task in my project file.…

Spikeh
- 3,540
- 4
- 24
- 49
-1
votes
1 answer
ASP.NET Web Optimization Framework - throws errors
ASP.NET Web Optimization Framework throws errors in CSS minification, I tried, validated and did everything to fix, but seems framework bug
/* Minification failed. Returning unminified contents.
(1,1-2): run-time error JS1195: Expected expression:…

Luckyy
- 1,021
- 4
- 15
- 29