new minification
This commit is contained in:
parent
dd17435a20
commit
3be9e00e2a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue