1

Closed

Numerous errors with jQuery Plugin CSS files

description

I have encountered numerous syntax errors with 3rd party jQuery Plugin CSS files.....in fact far too numerous to list here. Is there a minifier option which does not require that an entire CSS file be syntaxly correct ?
 
I am using the MSFT AJAX Minifier 4.57.
Closed Oct 9, 2012 at 10:58 PM by ronlo
cleaning up older fixed issues

comments

ronlo wrote Jul 2, 2012 at 7:26 PM

No, unfortunately there isn't. You can ignore specific errors using the -ignore switch, though. Might be a bit of a pain to itemize all the categories you may be seeing, however.

Out of curiosity, are you saying that AjaxMin produces incorrect output, or that it throws a bunch of errors as it's processing the input, but still produces valid output? And are the syntax errors being throw real syntax errors, or a syntax that AjaxMin just doesn't understand? If it's the latter, please tell me and I'll try to change AjaxMin to support that syntax.

ronlo wrote Jul 2, 2012 at 8:24 PM

I see the other issues you posted (this one just came into my inbox first). For issue #18295, for example, you can cause AjaxMin to ignore the error by passing -ignore:CSS1036. For issue #18294, -ignore:CSS1019,CSS1062 will ignore the two errors thrown. The -ignore switch is a comma-separated list of errors to ignore, so to combine the two use -ignore:CSS1036,CSS1019,CSS1062. The error codes are the same ones shown in the error messages of the AjaxMin output.

ronlo wrote Jul 2, 2012 at 8:59 PM

I'm going to add an option to the -ignore switch. If the error string is "ALL" (case-insensitive), then no error messages or warnings will be output. That way if you just don't care about any potential errors in the input code, you can specify -ignore:all on the command line and nothing will be displayed. I'll get this in the 4.58 release.

plippard wrote Jul 2, 2012 at 9:40 PM

I am using the minifier in a MSBUILD environment.....can you point me to how I use the runtime options when integrated within MSBUILD ? I am just now upgrading to 4.57 from a very old minifier version.

Thanks

plippard wrote Jul 2, 2012 at 9:40 PM

BTW....Thanks for the prompt support.

plippard wrote Jul 2, 2012 at 9:48 PM

The ALL option will be quite helpful.....in many cases the errors will be with 3rd party jQuery plug-ins ....which I am not interested in re-writing.

ronlo wrote Jul 2, 2012 at 10:02 PM

Excellent question! So in the beginning, we started out putting individual properties for all the feature switches. That quickly because very cumbersome to maintain, and lead to the inevitable questions of "how do I translate the command-line switch -FOO to build task parameters?" So at some point in the past I added the build task parameter "Switches." That property is the supported way of specifying AjaxMin switches now; you can specify almost all of the command-line switches for your build task using this property. For instance, if you want to use the "-ignore:all" command-line switch in your build task, set the property Switches="-ignore:all". The bottom of the article at http://ajaxmin.codeplex.com/wikipage?title=AjaxMinTask has a more-verbose description with a couple examples.

ronlo wrote Jul 2, 2012 at 11:17 PM

Fixed in released version 4.58 -- use the -ignore:all switch to turn off all error/warning reporting.

plippard wrote Jul 3, 2012 at 2:30 AM

Thanks...tested and 4.58 works great