8 lines
389 B
HTML
8 lines
389 B
HTML
|
{{- $styles := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/postcss.config.js") -}}
|
||
|
{{- if .Site.IsServer }}
|
||
|
{{ $styles = $styles | resources.ExecuteAsTemplate (printf "css/styles.dev.%v.css" now.UnixMilli) .}}
|
||
|
{{ else }}
|
||
|
{{- $styles := $styles| minify | fingerprint | resources.PostProcess -}}
|
||
|
{{ end -}}
|
||
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}">
|