Skip to content
Snippets Groups Projects

Use SERVER_NAME for critical-css

Merged Cédric Krier requested to merge topic/default/critical-css into branch/default
2 files
+ 4
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -3,7 +3,7 @@
set -e
: ${OUTPUT:='/tmp'}
: ${SITE:='localhost'}
: ${SERVER_NAME:='localhost'}
for page in \
"/ index" \
@@ -27,7 +27,7 @@
"/not_found not_found"
do
set -- ${page}
critical http://${SITE}${1} > "${OUTPUT}/${2}.css"
critical http://${SERVER_NAME}${1} --width 1500 > "${OUTPUT}/${2}.css"
done
tail -f /dev/null
Loading