From 183316b0d1c38ea342ca9340b1770448120389c2 Mon Sep 17 00:00:00 2001 From: MajorDroolz Date: Mon, 19 Dec 2022 15:07:11 -0500 Subject: [PATCH] FIX: Bash errors. --- .github/workflows/minify.yml | 6 +++--- index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/minify.yml b/.github/workflows/minify.yml index 17c01b7..6f0e606 100644 --- a/.github/workflows/minify.yml +++ b/.github/workflows/minify.yml @@ -17,13 +17,13 @@ jobs: with: node-version: '16' - run: | - npm install -g terser csso-cli html-minifier + npm i -g terser csso-cli html-minifier # Use CLI tools to minify, overwriting existing files - run: | - for i in `find . -name "*.js" -type f`; terser $i --compress -o $i; done + for i in `find . -name "*.js" -type f`; do terser $i --compress -o $i; done for i in `find . -name "*.css" -type f`; do csso $i -o $i; done - for i in `find . -name "*.html" -type f`; do html-minifier $i -o $i; done + for i in `find . -name "*.html" -type f`; do html-minifier --remove-comments --collapse-whitespace $i -o $i; done # Push changes to `build` branch - run: | diff --git a/index.html b/index.html index aeef4c9..725e6ce 100644 --- a/index.html +++ b/index.html @@ -4,4 +4,4 @@ - + \ No newline at end of file