#!/bin/bash echo "Starting Hugo development server with minification enabled..." # Check if Hugo is installed if ! command -v hugo &> /dev/null then echo "Hugo could not be found. Please install it first." echo "You can install it by following the instructions at: https://gohugo.io/installation/" exit 1 fi # Run Hugo server with minification and other optimization flags hugo server \ --disableFastRender \ --minify \ --gc \ --navigateToChanged \ -D \ --bind "0.0.0.0" \ --baseURL "http://localhost:1313/" echo "Hugo server stopped."