summaryrefslogtreecommitdiff
path: root/data/global.pl
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-08-17 14:51:14 +0200
committerYorhel <git@yorhel.nl>2015-08-17 14:52:47 +0200
commitc24962392d8959eb912be14b225d2e8a08ae3f54 (patch)
tree92675bcfd9b7a3abdc8d552ae0bd51033e17b75f /data/global.pl
parent7f81ec60b4c3fd1b6ef5aed2fe4a7f44ee21eeb1 (diff)
jsgen: Support external command for JS compression (like uglifyjs)
Tends to compress a bit better than JavaScript::Minifier::JS. But is also a lot slower, so not really useful when devving. Stats for en.js: raw gzip uglifyjs 68199 19446 JS::Minifier::XS 79862 21624 Uncompressed 107662 28663 On an unrelated note, I like how jQuery boasts about being "Only 32kB minified and gzipped.". That's quite a bit more than all of VNDB's Javascript combined. For a damn library.
Diffstat (limited to 'data/global.pl')
-rw-r--r--data/global.pl12
1 files changed, 8 insertions, 4 deletions
diff --git a/data/global.pl b/data/global.pl
index c8f2537b..5cefa5ff 100644
--- a/data/global.pl
+++ b/data/global.pl
@@ -1,9 +1,6 @@
package VNDB;
-our(%O, %S, $ROOT);
-
-
# options for TUWF
our %O = (
db_login => [ 'dbi:Pg:dbname=vndb', 'vndb', 'passwd' ],
@@ -18,7 +15,8 @@ our %O = (
# VNDB-specific options (object_data)
-our %S = (%S,
+our %S;
+%S = (%S,
version => `cd $VNDB::ROOT; git describe` =~ /^(.+)$/ && $1,
url => 'http://vndb.org', # Only used by Multi, web pages infer their own address
url_static => 'http://s.vndb.org',
@@ -136,6 +134,12 @@ our %M = (
);
+# Options for jsgen.pl
+our %JSGEN = (
+ compress => undef,
+);
+
+
# allow the settings to be overwritten in config.pl
require $ROOT.'/data/config.pl' if -f $ROOT.'/data/config.pl';