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 **
Hi, my apologies for not responding earlier but I have been swamped. When I said I had time, I meant that at this point, our app can do without minification but it would surely be nice to make it work.
I tried a couple of things you suggested.
1. -line:M
This clearly pointed to jquery.validate.min.js at:
```
function(a)
{
!jQuery.event.special.focusin && !jQuery.event.special.focusout && document.addEventListener && a.each({
focus: "focusin", blur: "focusout"
}, function(b, c)
{
function d(b)
{
return b = a.event.fix(b), b.type = c, a.event.handle.call(this, b)
}
a.event.special[c] = {
setup: function()
{
this.addEventListener(b, d, !0)
}, teardown: function()
{
this.removeEventListener(b, d, !0)
}, handler: function(b)
{
var d = arguments;
return d[0] = a.event.fix(b), d[0].type = c, a.event.handle.apply(this, d)
}
}
}),
a.extend(a.fn, {validateDelegate: function(b, c, d)
{
return this.bind(c, function(c)
{
var e = a(c.target);
if (e.is(b))
return d.apply(e, arguments)
})
}})
}(jQuery)(function(e, t)
```
The error is "Object Expected". The debugger does not react and does not tell me "a" is null when I mouse over it.
2. Then I tried to do two bundles and isolate jquery.validate.min.js in the middle. It worked. So it looked like your theory it might be too large a file may be true.
3. Then I tried to include jquery.validate.min.js in the first bundle which includes JQuery and JQueryUI. It worked too.
4. Then I tried to include jquery.validate.min.js in the second bundle which includes YUI amongst others. It failed!
I am sorry but I don't more time now to try anything else but I wanted to give sign of life and perhaps this will help you.
Thanks a lot!