From 81b1e8d4305e7dd019cd8a6bb70b3a3c76a62283 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 28 Jul 2017 11:21:55 +0100 Subject: [PATCH] update build.sh --- build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.sh b/build.sh index 4203a381..71698359 100644 --- a/build.sh +++ b/build.sh @@ -1,6 +1,15 @@ #!/bin/bash + +# Install rice tool if not present +if ! [ -x "$(command -v rice)" ]; then + go get github.com/GeertJohan/go.rice/rice +fi + +# Clean the dist folder and build the assets rm -rf assets/dist npm run build + +# Embed the assets using rice rice embed-go cd ./caddy/hugo rice embed-go