Skip to content

Commit

Permalink
Use dart-sass (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Nov 7, 2023
1 parent f2ec5bd commit 512854e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@
[build.environment]
PYTHON_VERSION = "3.8" # netlify currently only support 2.7 and 3.8
HUGO_VERSION = "0.120.3"
DART_SASS_VERSION = "1.69.4"
DART_SASS_URL = "https://github.com/sass/dart-sass/releases/download/"

[build]
base = "/"
publish = "public"
command = """\
export DART_SASS_TARBALL="dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
curl -LJO ${DART_SASS_URL}/${DART_SASS_VERSION}/${DART_SASS_TARBALL} && \
tar -xf ${DART_SASS_TARBALL} && \
rm ${DART_SASS_TARBALL} && \
export PATH=/opt/build/repo/dart-sass:$PATH && \
pip install pyyaml && \
make html \
"""

# Here is another way to define context specific environment variables.
[context.deploy-preview.environment]
Expand Down

0 comments on commit 512854e

Please sign in to comment.