Compare commits

...
2 Commits
Author SHA1 Message Date
Vezpi 2785900d4f Merge branch 'preview'
Blog Deployment / Check-Rebuild (push) Successful in 5s
Blog Deployment / Build (push) Successful in 7s
Blog Deployment / Merge (push) Successful in 7s
Blog Deployment / Test-Production (push) Successful in 2s
Blog Deployment / Clean (push) Successful in 2s
Blog Deployment / Deploy-Staging (push) Successful in 24s
Blog Deployment / Test-Staging (push) Successful in 2s
Blog Deployment / Deploy-Production (push) Successful in 10s
Blog Deployment / Notify (push) Successful in 2s
2026-10-14 18:56:39 +00:00
VezpiandGitea Actions 90451c07c3 feat: use dart sass instead of libsass (#17)
Co-authored-by: Gitea Actions <actions@local>
Reviewed-on: #17
2026-10-14 20:54:36 +02:00
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -3,6 +3,8 @@ FROM nginx:stable
ARG HUGO_VERSION ARG HUGO_VERSION
ENV HUGO_VERSION=${HUGO_VERSION} ENV HUGO_VERSION=${HUGO_VERSION}
ENV HUGO_DEST=/usr/share/nginx/html ENV HUGO_DEST=/usr/share/nginx/html
ENV DART_SASS_VERSION=1.105.1
ENV PATH="/opt/dart-sass:${PATH}"
# Install dependencies # Install dependencies
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
@@ -15,6 +17,10 @@ RUN apt-get update && apt-get install -y \
RUN curl -sSL https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz \ RUN curl -sSL https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz \
| tar -xz -C /usr/local/bin hugo | tar -xz -C /usr/local/bin hugo
# Download Dart Sass
RUN curl -fsSL https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz \
| tar -xz -C /opt
# Add entrypoint script # Add entrypoint script
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
+7
View File
@@ -0,0 +1,7 @@
{{ $sass := resources.Get "scss/style.scss" }}
{{ $opts := dict
"transpiler" "dartsass"
"silenceDeprecations" (slice "import" "global-builtin")
}}
{{ $style := $sass | toCSS $opts | minify | resources.Fingerprint "sha256" }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">