From 1c63a94f141d742938bbd811b2c92efa0b0edc2a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 18 Aug 2018 11:24:43 +0100 Subject: [PATCH] Use Hugo to minify instead --- package.json | 3 +-- scripts/build.sh | 2 +- scripts/release.sh | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 53bd81d..5adeb2f 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "lg-thumbnail": "1.1.0", "lightgallery": "1.6.11", "mermaid": "7.1.2", - "popper.js": "1.14.4", - "speedpack": "0.2.0" + "popper.js": "1.14.4" } } diff --git a/scripts/build.sh b/scripts/build.sh index 08592ac..1c33800 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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 cp -r $STATIC_SRC/scss/* $STATIC_BUILD/scss/ -hugo -vDEF --stepAnalysis --gc +hugo -vDEF --stepAnalysis --gc $HUGO_ARGS mkdir -p $OUTPUT_DIR/.well-known/ cp $BASEDIR/static/keybase.txt $OUTPUT_DIR/keybase.txt diff --git a/scripts/release.sh b/scripts/release.sh index 92fe391..f845add 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -4,6 +4,6 @@ set -e source ./scripts/common.sh -bash ./scripts/build.sh +export HUGO_ARGS="--minify" -speedpack $OUTPUT_DIR -o $OUTPUT_DIR +./scripts/build.sh