FIX: Minify bash errors.
This commit is contained in:
12
.github/workflows/minify.yml
vendored
12
.github/workflows/minify.yml
vendored
@@ -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: |
|
||||||
|
|||||||
Reference in New Issue
Block a user