diff options
author | Mark Rada <marada@uwaterloo.ca> | 2010-04-02 20:35:05 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-04-02 21:23:35 -0700 |
commit | 0e6ce21361c5d8e35cd15327539eec1f627aa0e3 (patch) | |
tree | d79ad77f86de6c7dc920b1edf7fede40ccedf828 /gitweb/INSTALL | |
parent | 8830bf4bc5b2d03027eff8a4dc6a0cb823ec3c3b (diff) | |
download | git-0e6ce21361c5d8e35cd15327539eec1f627aa0e3.tar.gz |
Gitweb: add support for minifying gitweb.css
The build system added support minifying gitweb.js through a
JavaScript minifier, but most minifiers come with support for
minifying CSS files as well, so we should use it if we can.
This patch will add the same facilities to gitweb.css that
gitweb.js has for minification. That does not mean that they
will use the same minifier though, as it is not safe to assume
that all JavaScript minifiers will also minify CSS files.
This patch also adds the GITWEB_PROGRAMS variable to the Makefile
to keep a list of potential gitweb dependencies separate from
OTHER_PROGRAMS when we need to know just the gitweb dependencies.
Though the bandwidth savings will not be as dramatic as with
the JavaScript minifier, every byte saved is important.
Signed-off-by: Mark Rada <marada@uwaterloo.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/INSTALL')
-rw-r--r-- | gitweb/INSTALL | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gitweb/INSTALL b/gitweb/INSTALL index b76a0cffff..b75a90be7d 100644 --- a/gitweb/INSTALL +++ b/gitweb/INSTALL @@ -66,6 +66,11 @@ file for gitweb (in gitweb/README). build configuration variables. By default gitweb tries to find them in the same directory as gitweb.cgi script. +- You can optionally generate a minified version of gitweb.css by defining + the CSSMIN build configuration variable. By default the non-minified + version of gitweb.css will be used. NOTE: if you enable this option, + substitute gitweb.min.css for all uses of gitweb.css in the help files. + Build example ~~~~~~~~~~~~~ |