Browse Source

added a minifyer (via sed) for *.html-files

pull/66/head
Jonas Hess 1 month ago
parent
commit
fa1fbc49e5
No known key found for this signature in database
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      minify-webstuff.sh

+ 9
- 1
minify-webstuff.sh View File

@@ -4,6 +4,14 @@
aminify=(`find ./files/www/ -name "*.css" -o -name "*.js"`)

for minifyme in "${aminify[@]}"; do
echo "$minifyme"
echo "- minifying: $minifyme"
yui-compressor $minifyme -o $minifyme
done

aminify=(`find ./files/www/ -name "*.html"`)
for minifyme in "${aminify[@]}"; do
echo "- minifying: $minifyme"
sed -i ':a;N;$!ba;s/>\s*</></g' $minifyme
done



Loading…
Cancel
Save