1
Fork 0

Use Hugo to minify instead

This commit is contained in:
Jake Howard 2018-08-18 11:24:43 +01:00
parent e60feea08c
commit 1c63a94f14
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 4 additions and 5 deletions

View file

@ -24,7 +24,6 @@
"lg-thumbnail": "1.1.0", "lg-thumbnail": "1.1.0",
"lightgallery": "1.6.11", "lightgallery": "1.6.11",
"mermaid": "7.1.2", "mermaid": "7.1.2",
"popper.js": "1.14.4", "popper.js": "1.14.4"
"speedpack": "0.2.0"
} }
} }

View file

@ -22,7 +22,7 @@ cp $BASEDIR/node_modules/mermaid/dist/mermaid.min.js $STATIC_BUILD/js/mermaid.mi
parcel build $STATIC_SRC/js/index.js -d $STATIC_BUILD/js/ -o app.js parcel build $STATIC_SRC/js/index.js -d $STATIC_BUILD/js/ -o app.js
cp -r $STATIC_SRC/scss/* $STATIC_BUILD/scss/ cp -r $STATIC_SRC/scss/* $STATIC_BUILD/scss/
hugo -vDEF --stepAnalysis --gc hugo -vDEF --stepAnalysis --gc $HUGO_ARGS
mkdir -p $OUTPUT_DIR/.well-known/ mkdir -p $OUTPUT_DIR/.well-known/
cp $BASEDIR/static/keybase.txt $OUTPUT_DIR/keybase.txt cp $BASEDIR/static/keybase.txt $OUTPUT_DIR/keybase.txt

View file

@ -4,6 +4,6 @@ set -e
source ./scripts/common.sh source ./scripts/common.sh
bash ./scripts/build.sh export HUGO_ARGS="--minify"
speedpack $OUTPUT_DIR -o $OUTPUT_DIR ./scripts/build.sh