diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2020-11-14 00:16:57 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2020-11-14 00:16:57 -0500 |
| commit | 815d917f90a6b67031646f2a7a24c86b7d1f5f45 (patch) | |
| tree | 9c13f713efb663c9bf8bf4e56bcc7a0710f6463c | |
| parent | 3163b0fae3188e5a3cf1b102d099ae39dd6c2349 (diff) | |
minify xml
| -rwxr-xr-x | process_static | 1 |
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 {} {} \; |
