diff --git a/install-dart-sass.sh b/install-dart-sass.sh new file mode 100755 index 00000000..98fd7523 --- /dev/null +++ b/install-dart-sass.sh @@ -0,0 +1,6 @@ +wget https://github.com/sass/dart-sass/releases/download/1.77.8/dart-sass-1.77.8-linux-x64.tar.gz -O dart-sass.tar.gz +tar -xf dart-sass.tar.gz +export PATH="$PATH:$PWD/dart-sass" +echo $PATH +hugo env +which sass diff --git a/netlify.toml b/netlify.toml index 9c6af085..681bab10 100644 --- a/netlify.toml +++ b/netlify.toml @@ -8,7 +8,7 @@ HUGO_ENABLEGITINFO = "true" GO_VERSION = "1.20.1" [context.production] -command = "cd exampleSite && npm install && hugo --minify" +command = "./install-dart-sass.sh && cd exampleSite && npm install && hugo --minify" [context.production.environment] HUGO_ENV = "production"