FIX: Minify bash errors.

This commit is contained in:
MajorDroolz
2022-12-19 14:54:07 -05:00
parent 109a84f1a4
commit 2b8c48345f
2 changed files with 7 additions and 6 deletions

View File

@@ -16,14 +16,14 @@ jobs:
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: '16' node-version: '16'
- run: npm install -g terser - run: |
- run: npm install -g csso-cli npm install -g terser csso-cli html-minifier
- run: npm install -g html-minifier
# Use CLI tools to minify, overwriting existing files # Use CLI tools to minify, overwriting existing files
- run: for i in ./js/*.js; do terser $i --compress -o $i; done - run: |
- run: for i in ./css/*.css; do csso $i -o $i; done for i in `find . -name "*.js" -type f`; terser $i --compress -o $i; done
- run: for i in ./html/*.html; do html-minifier [--your-options-here] $i -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
# Push changes to `build` branch # Push changes to `build` branch
- run: | - run: |

1
echo Normal file
View File

@@ -0,0 +1 @@
./resume/index.css