diff options
author | Yorhel <git@yorhel.nl> | 2015-08-17 14:51:14 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-08-17 14:52:47 +0200 |
commit | c24962392d8959eb912be14b225d2e8a08ae3f54 (patch) | |
tree | 92675bcfd9b7a3abdc8d552ae0bd51033e17b75f /data/config_example.pl | |
parent | 7f81ec60b4c3fd1b6ef5aed2fe4a7f44ee21eeb1 (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/config_example.pl')
-rw-r--r-- | data/config_example.pl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/data/config_example.pl b/data/config_example.pl index 56ed2ec7..9c255bb2 100644 --- a/data/config_example.pl +++ b/data/config_example.pl @@ -23,7 +23,7 @@ package VNDB; ); -# Uncomment to disable certain features of Multi +# Uncomment to enable certain features of Multi #$M{modules}{API} = {}; #$M{modules}{APIDump} = {}; @@ -35,3 +35,8 @@ package VNDB; # pass => '<nickserv-password>', # masters => [ 'yorhel!~Ayo@your.hell' ], #}; + + +# Uncomment the compression method to use for the generated Javascript (or just leave as-is to disable compression) +#$JSGEN{compress} = 'JavaScript::Minifier::XS'; +#$JSGEN{compress} = "|/usr/bin/uglifyjs --compress --mangle"; |