From 7841dedbd0efd8121a80a0ef477e3b8ec65450cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 23 Mar 2024 14:48:42 +0200 Subject: [PATCH] move to dart-sass just found it in my tree --- flake.nix | 3 +-- themes/default/layouts/_default/baseof.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index e71417d..143f590 100644 --- a/flake.nix +++ b/flake.nix @@ -16,14 +16,13 @@ }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs {inherit system;}; - devDeps = with pkgs; [hugo brotli zopfli parallel]; + devDeps = with pkgs; [hugo brotli zopfli parallel dart-sass]; in { devShells.default = pkgs.mkShell { LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive"; packages = devDeps; }; - # TODO: cache defaultPackage = pkgs.stdenv.mkDerivation { pname = "jakstys.lt"; version = "1.0.0"; diff --git a/themes/default/layouts/_default/baseof.html b/themes/default/layouts/_default/baseof.html index d594ddc..0ca0b95 100644 --- a/themes/default/layouts/_default/baseof.html +++ b/themes/default/layouts/_default/baseof.html @@ -4,7 +4,7 @@ {{ partial "html-meta.html" . -}} {{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }} -{{ $css := resources.Get "_/styles.scss" | resources.ToCSS (dict "enableSourceMap" true) | resources.Minify | resources.Fingerprint }} +{{ $css := resources.Get "_/styles.scss" | resources.ToCSS (dict "enableSourceMap" false "transpiler" "dartsass") | resources.Fingerprint }} {{ with .Site.Params.favicon -}}