mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 03:04:37 -04:00
Improve Dart Sass example for Netlify
This commit is contained in:
parent
2d294ece9a
commit
9ec92cf683
@ -166,21 +166,20 @@ pages:
|
|||||||
To install Dart Sass for your builds on Netlify, the `netlify.toml` file should look something like this:
|
To install Dart Sass for your builds on Netlify, the `netlify.toml` file should look something like this:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
|
[build.environment]
|
||||||
|
HUGO_VERSION = "0.114.0"
|
||||||
|
DART_SASS_VERSION = "1.63.5"
|
||||||
|
TZ = "America/Los_Angeles"
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
publish = "public"
|
publish = "public"
|
||||||
command = """\
|
command = """\
|
||||||
curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz && \
|
curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz && \
|
||||||
tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz && \
|
tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz && \
|
||||||
mkdir -p /opt/build/repo/node_modules/.bin && \
|
rm dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz && \
|
||||||
cp -r dart-sass/* /opt/build/repo/node_modules/.bin && \
|
export PATH=/opt/build/repo/dart-sass:$PATH && \
|
||||||
rm -rf dart-sass* && \
|
|
||||||
hugo --gc --minify \
|
hugo --gc --minify \
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[build.environment]
|
|
||||||
DART_SASS_VERSION = "1.63.5"
|
|
||||||
HUGO_VERSION = "0.114.0"
|
|
||||||
TZ = "America/Los_Angeles"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
Loading…
x
Reference in New Issue
Block a user