Skip to content

Commit 512854e

Browse files
1 parent f2ec5bd commit 512854e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

netlify.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
[build.environment]
44
PYTHON_VERSION = "3.8" # netlify currently only support 2.7 and 3.8
55
HUGO_VERSION = "0.120.3"
6+
DART_SASS_VERSION = "1.69.4"
7+
DART_SASS_URL = "https://github.com/sass/dart-sass/releases/download/"
8+
9+
[build]
10+
base = "/"
11+
publish = "public"
12+
command = """\
13+
export DART_SASS_TARBALL="dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
14+
curl -LJO ${DART_SASS_URL}/${DART_SASS_VERSION}/${DART_SASS_TARBALL} && \
15+
tar -xf ${DART_SASS_TARBALL} && \
16+
rm ${DART_SASS_TARBALL} && \
17+
export PATH=/opt/build/repo/dart-sass:$PATH && \
18+
pip install pyyaml && \
19+
make html \
20+
"""
621

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

0 commit comments

Comments
 (0)