Questions tagged [microsoft-ajax-minifier]

41 questions
2
votes
1 answer

Unable to run Ajax Minifier as post-build in Visual Studio

I've set up my post build config as demonstrated at http://www.asp.net/ajaxlibrary/ajaxminquickstart.ashx I'm getting the following error though: The "JsSourceFiles" parameter is not supported by the "AjaxMin" task. Verify the parameter exists on…
James South
  • 10,147
  • 4
  • 59
  • 115
2
votes
2 answers

Using the Microsoft Ajax Minifier with Web Setup project & Source Control

I've just started investigating the Microsoft Ajax Minifer 4.0 for use with a Visual Studio 2008 Web Application I work on. It's proven easy enough to hook it into the .csproj file so it produced .min.js files for all scripts, however I'm stumped as…
Rob
  • 45,296
  • 24
  • 122
  • 150
2
votes
1 answer

Dynamically Add Minified Embedded Resource

Is there a way to dynamically add an embedded resource during the build process? I am currently using Ajax-Minifier to reduce two files down into one. The result works great. However I need to include this file as an embedded resource when the…
cgatian
  • 22,047
  • 9
  • 56
  • 76
1
vote
1 answer

Ajaxmin MinifyJavascript adding {} before object

I am facing an issue while minifying a javascript file using AjaxMin's MinifyJavaScript method. Unminified Code if (typeof define === 'function' && define.amd) { define(['moment'], function (moment) { root.moment =…
1
vote
1 answer

AjaxMin stops after @media in css

I added a step in my build task in VS2010 to minify my css and jss with AjaxMin. However the minify messes up the css because when it reaches an @media tag it just stops. There are no errors in the build output. basically at this point in the…
Karen
  • 2,296
  • 3
  • 18
  • 19
1
vote
2 answers

Can wildcards and variables be used in a Microsoft Ajax Minifier manifest file?

I am using the Microsoft Ajax Minifier to minify my javascript files. In the manifest, I would like to specify that all js files in a source folder should be minified into a different output folder. The original filename should be used as the…
ESS
  • 175
  • 1
  • 15
1
vote
1 answer

Why Microsoft Ajax Minifier doesn't generate mini file with Team build 2010?

I just used the wonderful tool Microsoft Ajax Minifier and it's working very well when I build my MVC application on my machine but when I check-in in source control and started build by the Team Build 2010 it doesn't create the min files, for sure…
Mohamed.Radwan -MVP
  • 2,724
  • 2
  • 16
  • 24
1
vote
1 answer

MicrosoftAjaxMinifier doesn't seem to remove "unreachable code"

I'm using this with BundleTransformer from nuget and System.Web.Optimisation in an ASP.Net app. According to various docs this minifier is supposed to "remove unreachable code". I know it's not as aggressive as google closure (which I can't use…
cirrus
  • 5,624
  • 8
  • 44
  • 62
1
vote
1 answer

How can I include version number in output file name?

I'm using XML Manifest File and I'd like to have the project build version concatenated in the output file name e.g: library-1.0.0.js Is it possible or any work around?
Carlos
  • 192
  • 1
  • 1
  • 8
1
vote
1 answer

Ajax minify specify output directory VS2010

I am trying to integrate Ajax minify in the build of VS 2010. We are using the syntax as shown below and it does work but I want the file to copied to a specific folder. Currently its creating the file in the root directory. How can i change this.…
user1124707
  • 135
  • 1
  • 11
1
vote
1 answer

Expand list of files in argument for pre-build event

I'm trying to run a pre-build event which passes all the JavaScript files in a directory to MS's Ajax Minifier. Unfortunately, this tool excepts file names as individual arguments (it cannot parse "*.js"). I have quite a few JavaScript files and I…
0
votes
1 answer

Is there something equivalent to the command-line parameters for the AjaxMinTask?

I would like to use the -res switch for the ajaxmintask in the proj file. However, I can't find any documentation on how this can be done. I know how to do it via command line but if there is a way to add switches via the proj file that would be…
0
votes
1 answer

Visual Studio Publish Minified Files Every Time, How to Stop it?

We use Microsoft Ajax (ajaxmin.tasks) approach which described in this one (http://stackoverflow.com/questions/5043504/using-microsoft-ajax-minifier-with-visual-studio-2010-1-click-publish) to minify the css/js file when each build, it works…
Eric Yin
  • 8,737
  • 19
  • 77
  • 118
0
votes
2 answers

Setting Visual Studio to automatically minifying using Ajax Minifier

I use VS 2010 I would like at the pressing of Build Button have all CSS and .JS files minified. Following this article all is working great for JS... adding some extra code for the CSS (pasted below) I'm not able to Minifying the CSS. What I'm doing…
GibboK
  • 71,848
  • 143
  • 435
  • 658
0
votes
2 answers

Can AjaxMinTask output a single file?

I have multiple js input files. How can I make the Microsoft Ajax Minifier (using AjaxMinTask.dll) combine them into a single minified js file?
eNepper
  • 1,889
  • 2
  • 13
  • 12