From 815d917f90a6b67031646f2a7a24c86b7d1f5f45 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 14 Nov 2020 00:16:57 -0500 Subject: [PATCH] minify xml --- process_static | 1 + 1 file changed, 1 insertion(+) diff --git a/process_static b/process_static index ed2a3384..9300ff3e 100755 --- a/process_static +++ b/process_static @@ -7,6 +7,7 @@ export PATH="$PWD/node_modules/.bin:$PATH" rm -rf static_tmp cp -a static static_tmp json_reformat -m < static_tmp/manifest.webmanifest | sponge static_tmp/manifest.webmanifest +find static_tmp -name '*.xml' -exec xmllint --noblanks {} --output {} \; find static_tmp -name '*.css' -exec csso {} -o {} \; 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 --remove-redundant-attributes --remove-script-type-attributes --remove-style-link-type-attributes --sort-attributes --sort-class-name {} -o {} \; find static_tmp -name '*.js' -exec terser --module -cmo {} {} \;