Skip to content

Commit

Permalink
adsf concat
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Nov 30, 2020
1 parent 55457ac commit b5ef286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions concat-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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


Expand Down

0 comments on commit b5ef286

Please sign in to comment.