[Pkg-javascript-devel] documentation about distributing minified versions of files

David Prévot david at tilapin.org
Thu May 9 18:11:18 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

Le 09/05/2013 13:40, Daniel Kahn Gillmor a écrit :
> why is this painful?  During development, you install libjs-jquery
> alongside whatever other development tools, libraries, frameworks your
> user project depends on.  your user project links to the
> /usr/share/javascript/jquery directory, whose contents are provided by
> libjs-jquery.

I fail to understand the benefit of the split (as in “what real life
problem is this supposed to solve?”).

> In deployment, the sysadmins install libjs-jquery-minified on the live
> server instead.  this installs minified files in
> /usr/share/javascript/jquery .  the user project does not change at all.

Please note that some projects (including ownCloud, packaged on Debian)
allow the web administrator to switch (temporarily) in debug mode,
where, among other things, the non-minified JavaScript are used instead
of the usual minified ones. Splitting (and conflicting) minified and
non-minified JavaScript packages may be painful in some (real life) use
case.

Regards

David

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJRi+bGAAoJELgqIXr9/gnygVoP/RJb94Q4elCqx6yrzx+2LGlD
06dq1hU5MMuaItkhl1+4gTLOhZYYmICHPHulxj3uvOtRQ9H/JCyMakj6n4iiXufL
sLsCUc5vcn/knHvkhagd+TgNWTqkaZcnJaRouQfYkudmkLYMa4Dge5BaPlsrj0fo
qbutU07tHbGRo88TEy+6X8AYvhA6OTcR9mu1p0ES0mh0yHk8lYTO66swglvHGNt7
mA8AXAAZmrGzytbdOEJ3uiks1zB2J/orj83BnfunKiTlK4nFq5FYM+F755VLH4KG
K+FTV9DGH+FGUzYOP/T4uXD7mn6hIPNqDk9ZdOleU7iJX24dOb65UXRFQo6FE83s
QjiMN4XSB3pfiHr6ddF+IzdjJV9fP42Sw9+NQRrsUsdEacwCINiuN6gt+xms/qp0
h3tHoIx5/Lf8mQVJGeVRbAtltOzjTdlDhBwswFyEkJ07hvf70X86DtEdTBUl+4Ou
vVWBjbmNkL2z24IX2EzxHrm65OwoM3plpuCPbYOabYAYtsX1L6oiCSUj5awR9EGj
jxiMqmyWl6j4BmOE8WMUks8NxRCF12G+srFUnxxAmWlDoG1ML+huvgS62t0tnDaI
/F8Q3BmRQzR1Htf3Mq3jJwDIYwHXHxgtn9gNJVAhTXRmshREk12A2kvamyapNtFk
e1BE3j+ZYwKm7LCuy0HF
=wRRT
-----END PGP SIGNATURE-----



More information about the Pkg-javascript-devel mailing list