Skip to content

Commit 843cb47

Browse files
Use dart-sass (#285)
1 parent a13e609 commit 843cb47

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

netlify.toml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
[build.environment]
22
PYTHON_VERSION = "3.8" # netlify currently only support 2.7 and 3.8
3-
HUGO_VERSION = "0.114.1"
3+
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+
(cd /tmp && \
13+
curl -LJO ${DART_SASS_URL}/${DART_SASS_VERSION}/${DART_SASS_TARBALL} && \
14+
tar -xf ${DART_SASS_TARBALL} && \
15+
rm ${DART_SASS_TARBALL}) && \
16+
export PATH=/tmp/dart-sass:$PATH && \
17+
export PREVIEW_DEST="../build" && \
18+
make preview-build && \
19+
mv ../build/public . \
20+
"""
421

522
[[plugins]]
623
package = "netlify-plugin-checklinks"

0 commit comments

Comments
 (0)