From acb0c1788976af1601ac300b9206e1c898a29d5b Mon Sep 17 00:00:00 2001
From: Andreas Deininger <andreas@deininger.net>
Date: Sat, 07 Jun 2025 12:57:26 +0000
Subject: [PATCH] chore: migrate libsass to dartsass (#562)
---
netlify.toml | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/netlify.toml b/netlify.toml
index 88f3cb1..8732c45 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -1,9 +1,19 @@
[build]
publish = "exampleSite/public"
- command = "cd exampleSite && hugo --gc --minify --themesDir ../.."
-
+ command = """\
+ curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz && \
+ tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz && \
+ rm dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz && \
+ export PATH=/opt/build/repo/dart-sass:$PATH && \
+ cd exampleSite && \
+ hugo --gc --minify --themesDir ../.. \
+ """
+
[build.environment]
HUGO_VERSION = "0.147.5"
+ DART_SASS_VERSION = "1.89.0"
+ NODE_VERSION = "24"
+ GO_VERSION = "1.24.3"
HUGO_ENV = "production"
HUGO_THEME = "repo"
HUGO_BASEURL = "https://anatole-demo.netlify.app"
--
Gitblit v1.10.0