1
Fork 0

move to dart-sass

just found it in my tree
main
Motiejus Jakštys 2024-03-23 14:48:42 +02:00
parent 8a9c4dc46e
commit 7841dedbd0
2 changed files with 2 additions and 3 deletions

View File

@ -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";

View File

@ -4,7 +4,7 @@
<meta charset="utf-8">
{{ partial "html-meta.html" . -}}
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</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 }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
{{ with .Site.Params.favicon -}}
<link rel="shortcut icon" href="{{ . }}" type="image/x-icon">