feat: Add build prod command

This commit is contained in:
Simon 2021-11-17 23:22:32 +01:00
parent 6390d59703
commit 1a2c8fa3fd
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@ dev_prod() {
hugo server
}
build_prod() {
rm -rf public
hugo --minify --environment production
node themes/hugo-theme-lowtech/scripts/typo
}
prod() {
echo
echo "🚀 Déploiement du site en mode production 🚀"