Skip to content

Commit 3030920

Browse files
Use dart sass (#11)
1 parent c4872f0 commit 3030920

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

netlify.toml

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

519
[context.deploy-preview]
620
ignore = "false"

0 commit comments

Comments
 (0)