Use Hugo to minify instead
This commit is contained in:
parent
e60feea08c
commit
1c63a94f14
3 changed files with 4 additions and 5 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue