Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Aug 25, 2024
1 parent 72a2caf commit 3f2bf80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions install-dart-sass.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
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
chmod +x $PWD/dart-sass/sass
export PATH="$PATH:$PWD/dart-sass"
echo $PATH
hugo env
which sass
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3f2bf80

Please sign in to comment.