update build.sh
This commit is contained in:
1 file changed
+9
@@ -1,6 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/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
|
rm -rf assets/dist
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
|
# Embed the assets using rice
|
||||||
rice embed-go
|
rice embed-go
|
||||||
cd ./caddy/hugo
|
cd ./caddy/hugo
|
||||||
rice embed-go
|
rice embed-go
|
||||||
Reference in new issue
Block a user