Use dart-scss
This commit is contained in:
19
netlify.toml
19
netlify.toml
@ -1,6 +1,15 @@
|
|||||||
[build]
|
|
||||||
command = "hugo"
|
|
||||||
publish = "public"
|
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.157.0"
|
DART_SASS_VERSION = "1.98.0"
|
||||||
|
GO_VERSION = "1.26.1"
|
||||||
|
HUGO_VERSION = "0.157.0"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
publish = "public"
|
||||||
|
command = """\
|
||||||
|
curl -sLJO "https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
|
||||||
|
tar -C "${HOME}/.local" -xf "dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
|
||||||
|
rm "dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
|
||||||
|
export PATH="${HOME}/.local/dart-sass:${PATH}" && \
|
||||||
|
git config core.quotepath false && \
|
||||||
|
hugo build --gc --minify --baseURL "${URL}"
|
||||||
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user