diff --git a/build.sh b/build.sh index a744542..102515c 100755 --- a/build.sh +++ b/build.sh @@ -1,8 +1,15 @@ #!/bin/bash -echo "Building Tailwind CSS..." + +echo "🔍 Checking for Tailwind CSS..." +if ! [ -d "node_modules" ]; then + echo "📦 Installing Tailwind CSS and dependencies..." + npm install +fi + +echo "🚀 Building Tailwind CSS..." npx tailwindcss -i ./static/css/main.css -o ./static/css/output.css --minify -echo "Building Zola site..." +echo "🔨 Building Zola site..." zola build echo "✅ Build complete!" diff --git a/start.sh b/start.sh index 02d17db..650d3aa 100755 --- a/start.sh +++ b/start.sh @@ -1,4 +1,11 @@ #!/bin/bash + +echo "🔍 Checking for Tailwind CSS..." +if ! [ -d "node_modules" ]; then + echo "📦 Installing Tailwind CSS and dependencies..." + npm install +fi + echo "Starting Tailwind CSS watcher & Zola live server..." npx tailwindcss -i ./static/css/main.css -o ./static/css/output.css --watch & zola serve