split up validator.nu validation
There are persistent bugs with handling HTML, CSS and SVG together.
This commit is contained in:
parent
74f3eb18f9
commit
12e579c5c0
@ -77,8 +77,9 @@ sed -i "$replace" static-tmp/releases.html
|
|||||||
gixy nginx-tmp/nginx.conf
|
gixy nginx-tmp/nginx.conf
|
||||||
|
|
||||||
xmllint --noout static-tmp/**/*.html
|
xmllint --noout static-tmp/**/*.html
|
||||||
# check CSS first to work around a validator bug
|
java -jar node_modules/vnu-jar/build/dist/vnu.jar --errors-only static-tmp/**/*.html
|
||||||
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)
|
java -jar node_modules/vnu-jar/build/dist/vnu.jar --Werror --css static-tmp/**/*.css
|
||||||
|
java -jar node_modules/vnu-jar/build/dist/vnu.jar --Werror --svg static-tmp/**/!(bimi).svg
|
||||||
find static-tmp -name '*.html' -exec html-minifier --collapse-whitespace \
|
find static-tmp -name '*.html' -exec html-minifier --collapse-whitespace \
|
||||||
--process-scripts "application/ld+json" --collapse-boolean-attributes \
|
--process-scripts "application/ld+json" --collapse-boolean-attributes \
|
||||||
--remove-attribute-quotes --remove-comments --remove-empty-attributes \
|
--remove-attribute-quotes --remove-comments --remove-empty-attributes \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user