Quantcast
Channel: ajaxmin Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 683

Commented Issue: AjaxMinTask not working as expected [19459]

$
0
0
I am using AjaxMinTask and ajaxmin files from a .NET project in VS2010 to concatenate and compress both css and js files.

1. First problem is that the js code is broken once minified. I am using 14 files as input, JQuery, Knockout, YUI, etc., as well as my own code. One thing I am doing though is that I am using the already minified versions of the vendors' files listed above. Not sure if this is allowed but it would be handy (if not, why?). I have tried to use the following switches to no evail:

–global:YUI,JQuery,$,ko -evals:safeall -fnames:keep<

I am doing many Ajax calls and I wonder if this is not what gets broken (I saw there was a problem with that; not sure if it's been fixed).

2. Another problem is that the output files do not get overwritten with every build even though I use the "-clobber:true" switch. If not resolved, this problem would be definitely a show stopper (i.e. find another solution) as we do automatic builds on a build server and need to be sure the files will be renewed every time.

Thanks, Yves
Comments: ** Comment from web user: ycourbier **

Funny you should ask the version #: this morning I had a doubt but I doubled-checked and I am indeed using 4.84 , created on Feb 11, 2013 so we are good as far as this is concerned.

I tried the -minify:no switch as you suggest but I still get the same error. I don't see this switch documented anyway... And I agree with you there are too many switches ;).

The error I get is in jquery.validate. The code breaking starts at:

function(a){!jQuery.event.special.focusin&&!jQuery.event.special.focusout

and I can see that the "-minify:no" switch has worked because the code is no longer modified (compared to my previous post).

Unfortunately I can't find the function in the original file (non minified) as it was probably renamed but you should be able to find it by searching "jQuery.event.special.focusin" in the min file. I think this is definitely related to Ajax validation handling.
I can't send you the character as there is no stack trace (dev tools says it's coming from "JScript global code").

Thanks for your help, I appreciate it.


Viewing all articles
Browse latest Browse all 683

Trending Articles



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