new minification

This commit is contained in:
Roland Gruber 2017-04-02 15:42:57 +02:00
parent dd17435a20
commit 3be9e00e2a
3 changed files with 7 additions and 6 deletions

View File

@ -20,12 +20,13 @@ else
fi
# minifies the JavaScript files
set -x
function minify {
local dir="$1"
echo "Minify JS files in $dir"
local files=`ls $dir/*.js`
for file in $files; do
closure-compiler --charset UTF-8 --js file --js_output_file ${file}-MIN
closure-compiler --charset UTF-8 --js $file --js_output_file ${file}-MIN
rm $file
mv ${file}-MIN $file
# add final new line to supress Debian warnings
@ -39,7 +40,7 @@ function minifyCSS {
echo "Minify CSS files in $dir"
local files=`ls $dir/*.css`
for file in $files; do
cleancss -o ${file}-MIN $file file
cleancss -o ${file}-MIN $file
rm $file
mv ${file}-MIN $file
# add final new line to supress Debian warnings

View File

@ -4,7 +4,7 @@ set -e
files=`ls templates/lib/*.js`
for file in $files; do
closure-compiler --charset UTF-8 --js file --js_output_file ${file}-MIN
closure-compiler --charset UTF-8 --js $file --js_output_file ${file}-MIN
rm $file
mv ${file}-MIN $file
# add final new line to supress Debian warnings
@ -13,7 +13,7 @@ done
files=`ls style/*.css`
for file in $files; do
cleancss -o ${file}-MIN $file file
cleancss -o ${file}-MIN $file
rm $file
mv ${file}-MIN $file
# add final new line to supress Debian warnings

View File

@ -59,12 +59,12 @@
// top-level LI's and top level A's and SPANs
$topl
.css({
float : 'right'
'float' : 'right'
})
.find('> a, > span')
.addClass('toplevel')
.css({
float : 'right'
'float' : 'right'
});
// all sub-ULs