Minify-scripts. Updated jQuery.
This commit is contained in:
parent
1b2cde7661
commit
ce45ae55ef
3
web/css/.htaccess
Normal file
3
web/css/.htaccess
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<FilesMatch "(?<!min)\.css">
|
||||||
|
deny from all
|
||||||
|
</FilesMatch>
|
12
web/css/css-minify.sh
Executable file
12
web/css/css-minify.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# minify all .css-files
|
||||||
|
ls -1 *.css|grep -Ev "min.css$" | while read cssfile; do
|
||||||
|
newfile="${cssfile%.*}.min.css"
|
||||||
|
echo "$cssfile --> $newfile"
|
||||||
|
curl -X POST -s --data-urlencode "input@$cssfile" http://cssminifier.com/raw > $newfile
|
||||||
|
done
|
||||||
|
|
||||||
|
# merge all into one single file
|
||||||
|
rm -f scripts.min.css
|
||||||
|
cat *.min.css > scripts.min.css
|
3
web/js/.htaccess
Normal file
3
web/js/.htaccess
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<FilesMatch "(?<!min)\.js">
|
||||||
|
deny from all
|
||||||
|
</FilesMatch>
|
File diff suppressed because it is too large
Load Diff
12
web/js/js-minify.sh
Executable file
12
web/js/js-minify.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# minify all .js-files
|
||||||
|
ls -1 *.js|grep -Ev "min.js$" | while read jsfile; do
|
||||||
|
newfile="${jsfile%.*}.min.js"
|
||||||
|
echo "$jsfile --> $newfile"
|
||||||
|
curl -X POST -s --data-urlencode "input@$jsfile" http://javascript-minifier.com/raw > $newfile
|
||||||
|
done
|
||||||
|
|
||||||
|
# merge all into one single file
|
||||||
|
rm -f scripts.min.js
|
||||||
|
cat *.min.js > scripts.min.js
|
Loading…
Reference in New Issue
Block a user