summaryrefslogtreecommitdiff
path: root/process_static
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2020-11-14 00:16:57 -0500
committerDaniel Micay <danielmicay@gmail.com>2020-11-14 00:16:57 -0500
commit815d917f90a6b67031646f2a7a24c86b7d1f5f45 (patch)
tree9c13f713efb663c9bf8bf4e56bcc7a0710f6463c /process_static
parent3163b0fae3188e5a3cf1b102d099ae39dd6c2349 (diff)
minify xml
Diffstat (limited to 'process_static')
-rwxr-xr-xprocess_static1
1 files changed, 1 insertions, 0 deletions
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 {} {} \;