adsf concat

This commit is contained in:
Matthias Wirth
2020-11-30 22:52:42 +01:00
parent 55457ac9d8
commit b5ef28687a

View File

@@ -9,7 +9,7 @@ function magic() {
for file in $(grep -oP -e '"stylesheet" href="\K[^"]*' index.html); do
sed -i -e "\\#$file#d" index.html
cat $file >> all.css
cat "$file" >> all.css
done
sed -i -e 's$.*CSS_ANCHOR.*$\0\n<link rel="stylesheet" href="all.css" type="text/css" />$' index.html
magic all css
@@ -19,7 +19,7 @@ for file in $(grep -oP -e 'script src="\K[^"]*' index.html); do
sed -i -e "\\#$file#d" index.html
cat "$file" >> all.js
done
sed -i -e 's$.*JS_ANCHOR.*$\0\n<link rel="stylesheet" href="all.css" type="text/css" />$' index.html
sed -i -e 's$.*JS_ANCHOR.*$\0\n<script src="all.js"></script>$' index.html
magic all js