This commit is contained in:
@@ -12,7 +12,7 @@ mkdir -p "$DIST"
|
|||||||
cp "$SRC/index.html" "$DIST/index.html"
|
cp "$SRC/index.html" "$DIST/index.html"
|
||||||
|
|
||||||
# Cache-bust assets by appending a content hash to filenames
|
# Cache-bust assets by appending a content hash to filenames
|
||||||
for ext in css js jpeg png svg; do
|
for ext in css js jpeg png svg ico; do
|
||||||
for file in "$SRC"/*."$ext"; do
|
for file in "$SRC"/*."$ext"; do
|
||||||
[ -f "$file" ] || continue
|
[ -f "$file" ] || continue
|
||||||
name=$(basename "$file" | sed "s/\.$ext$//")
|
name=$(basename "$file" | sed "s/\.$ext$//")
|
||||||
@@ -29,7 +29,7 @@ for ext in css js jpeg png svg; do
|
|||||||
js)
|
js)
|
||||||
sed -i "s|src=\"${name}.${ext}\"|src=\"${newname}\"|g" "$DIST/index.html"
|
sed -i "s|src=\"${name}.${ext}\"|src=\"${newname}\"|g" "$DIST/index.html"
|
||||||
;;
|
;;
|
||||||
jpeg|png|svg)
|
jpeg|png|svg|ico)
|
||||||
sed -i "s|\"${name}.${ext}\"|\"${newname}\"|g" "$DIST/index.html"
|
sed -i "s|\"${name}.${ext}\"|\"${newname}\"|g" "$DIST/index.html"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.0 MiB |
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Reese Wells - Self-Hosting & Infrastructure</title>
|
<title>Reese Wells - Self-Hosting & Infrastructure</title>
|
||||||
<link rel="icon" type="image/png" href="favicon.png">
|
<link rel="icon" type="image/png" href="favicon.ico">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user