FIX: Bash errors.

This commit is contained in:
MajorDroolz
2022-12-19 15:07:11 -05:00
parent d72e8ca858
commit 183316b0d1
2 changed files with 4 additions and 4 deletions

View File

@@ -17,13 +17,13 @@ jobs:
with: with:
node-version: '16' node-version: '16'
- run: | - 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 # Use CLI tools to minify, overwriting existing files
- run: | - 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 "*.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 # Push changes to `build` branch
- run: | - run: |

View File

@@ -4,4 +4,4 @@
<meta http-equiv="Refresh" content="0; url=resume"/> <meta http-equiv="Refresh" content="0; url=resume"/>
</head> </head>
<body bgcolor="black"></body> <body bgcolor="black"></body>
</html> </html>