Compare commits
2 Commits
5f57ee1bcd
...
developmen
| Author | SHA1 | Date | |
|---|---|---|---|
| 19c71cec50 | |||
| 84bc7fb1b1 |
14
build.sh
14
build.sh
@@ -5,14 +5,14 @@ echo "🧹 Cleaning build folders..."
|
|||||||
rm -rf public static/css
|
rm -rf public static/css
|
||||||
|
|
||||||
echo "⬇️ Downloading TailwindCSS CLI..."
|
echo "⬇️ Downloading TailwindCSS CLI..."
|
||||||
if [[ -f "tailwindcss.exe" ]]; then
|
if [[ -f "tailwindcss" ]]; then
|
||||||
rm tailwindcss.exe
|
rm tailwindcss
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ASSET="tailwindcss-windows-x64.exe"
|
ASSET="tailwindcss-linux-x64"
|
||||||
curl -sLO "https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.17/${ASSET}"
|
curl -sLO "https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.17/${ASSET}"
|
||||||
mv ${ASSET} tailwindcss.exe
|
mv ${ASSET} tailwindcss
|
||||||
chmod +x tailwindcss.exe
|
chmod +x tailwindcss
|
||||||
|
|
||||||
# Ensure correct config
|
# Ensure correct config
|
||||||
if [[ ! -f "tailwind.config.js" ]]; then
|
if [[ ! -f "tailwind.config.js" ]]; then
|
||||||
@@ -26,7 +26,7 @@ fi
|
|||||||
|
|
||||||
# Build Tailwind CSS
|
# Build Tailwind CSS
|
||||||
echo "🎨 Building Tailwind CSS..."
|
echo "🎨 Building Tailwind CSS..."
|
||||||
./tailwindcss.exe -i css/index.css -o static/css/index.css --minify
|
./tailwindcss -i css/index.css -o static/css/index.css --minify
|
||||||
|
|
||||||
if [[ ! -f "static/css/index.css" ]]; then
|
if [[ ! -f "static/css/index.css" ]]; then
|
||||||
echo "❌ Tailwind CSS not generated."
|
echo "❌ Tailwind CSS not generated."
|
||||||
@@ -36,7 +36,7 @@ fi
|
|||||||
echo "✅ Tailwind CSS built at static/css/index.css"
|
echo "✅ Tailwind CSS built at static/css/index.css"
|
||||||
|
|
||||||
# Build Zola site
|
# Build Zola site
|
||||||
echo "🏗️ Building site with Zola..."
|
echo "🏗 Building site with Zola..."
|
||||||
zola build
|
zola build
|
||||||
|
|
||||||
# Final check
|
# Final check
|
||||||
|
|||||||
Reference in New Issue
Block a user