adsf concat
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user