summaryrefslogtreecommitdiff
path: root/process-static
diff options
context:
space:
mode:
Diffstat (limited to 'process-static')
-rwxr-xr-xprocess-static3
1 files changed, 2 insertions, 1 deletions
diff --git a/process-static b/process-static
index 0ce73f92..a8e2e38d 100755
--- a/process-static
+++ b/process-static
@@ -77,7 +77,8 @@ sed -i "$replace" static-tmp/releases.html
gixy nginx-tmp/nginx.conf
xmllint --noout static-tmp/**/*.html
-java -jar node_modules/vnu-jar/build/dist/vnu.jar --errors-only --also-check-css --also-check-svg static-tmp/**/!(bimi).@(css|html|svg)
+# check CSS first to work around a validator bug
+java -jar node_modules/vnu-jar/build/dist/vnu.jar --errors-only --also-check-css --also-check-svg static-tmp/**/*.css static-tmp/**/!(bimi).@(html|svg)
find static-tmp -name '*.html' -exec html-minifier --collapse-whitespace \
--process-scripts "application/ld+json" --collapse-boolean-attributes \
--remove-attribute-quotes --remove-comments --remove-empty-attributes \