minify output html,css,svg
This commit is contained in:
parent
6eeb91a93d
commit
5f19e1759c
1 changed files with 4 additions and 1 deletions
5
build.sh
5
build.sh
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/env nix-shell
|
#! /usr/bin/env nix-shell
|
||||||
#! nix-shell --pure -i bash
|
#! nix-shell --pure -i bash
|
||||||
#! nix-shell --pure -p nodejs_24 bash harfbuzz soupault woff2 jotdown python3 recode nodePackages_latest.katex
|
#! nix-shell --pure -p nodejs_24 bash harfbuzz soupault woff2 jotdown python3 recode nodePackages_latest.katex minify
|
||||||
|
|
||||||
if ! [[ -d pgvv/ ]]; then
|
if ! [[ -d pgvv/ ]]; then
|
||||||
python3 -m venv pgvv
|
python3 -m venv pgvv
|
||||||
|
@ -59,6 +59,9 @@ for site in acl.cool ytheleus.org; do
|
||||||
soup_config
|
soup_config
|
||||||
rm -rf serve/
|
rm -rf serve/
|
||||||
soupault
|
soupault
|
||||||
|
pushd serve/
|
||||||
|
find -type f -name '*.html' -o -name '*.css' -o -name '*.svg' | xargs -0 -d\\n -I{} minify -o {} {}
|
||||||
|
popd
|
||||||
NEXT_DIR="serve_$(date +%s)"
|
NEXT_DIR="serve_$(date +%s)"
|
||||||
CUR_DIR=$(find . -maxdepth 1 -type d -regex './serve_[0-9]+')
|
CUR_DIR=$(find . -maxdepth 1 -type d -regex './serve_[0-9]+')
|
||||||
echo "$PREV_DIR"
|
echo "$PREV_DIR"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue