Skip to content

Use dart-sass #690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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