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