On Fri, 15 Jun 2012, Jonas Smedegaard wrote:
> On 12-06-15 at 09:28pm, Raphael Hertzog wrote:
> > Right. At least it would be nice to use the same minifier tool than 
> > upstream in the hope to generate the same minified file then.
> I disagree.  That would be comparable to using same C compiler with same 
> compile options (with less success for C than for JavaScript, probably).

Well, it's not exactly on the same scope, no. Minifying changes the
"appearance" of the file, not its intrinsic nature.

> As I understand it, the need for producing identical minification output 
> is only to ease identification of those files, which I believe is better 
> and more reliably done by hashing, with no ill sideeffects (e.g. some 
> minifiers sometimes produce broken output).

I agree that hashing would be more reliable, but it's also much more
work for everybody and the infrastructure doesn't exist yet... so I don't
see why using the same minifier could not be a sane recommendation in
the mean time.

> Does it make sense now?

Yes, thank you for the explanation.

Raphaël Hertzog ◈ Debian Developer

Get the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/

Pkg-javascript-devel mailing list

Reply via email to