postcss invoked only with flag "dev"
This commit is contained in:
parent
667cfafbe8
commit
bd36f68666
2 changed files with 7 additions and 7 deletions
|
@ -483,7 +483,7 @@ body {
|
|||
padding-left: 3rem;
|
||||
padding-top: 0.5rem;
|
||||
padding-right: 2rem;
|
||||
color: green;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.headiter {
|
||||
|
|
|
@ -24,14 +24,14 @@
|
|||
<link rel="manifest" href="/site.webmanifest">
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#996561">
|
||||
|
||||
{{ if (or (eq hugo.Environment "gitea") (eq hugo.Environment "preview") ) }}
|
||||
{{ $sitemin := resources.Get "css/site.min.css" }}
|
||||
<link rel="stylesheet" href="{{ $sitemin.RelPermalink }}" />
|
||||
{{ $player := resources.Get "css/player.min.css" }}
|
||||
<link rel="stylesheet" href="{{ $player.RelPermalink }}" />
|
||||
{{ else }}
|
||||
{{ if eq hugo.Environment "dev" }}
|
||||
{{ $style := resources.Get "css/site.css" | postCSS (dict "config" "assets/css/postcss.config.js") | minify }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
|
||||
{{ $style := resources.Get "css/player.css" | postCSS (dict "config" "assets/css/postcss.config.js") | minify }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
|
||||
{{ else }}
|
||||
{{ $sitemin := resources.Get "css/site.min.css" }}
|
||||
<link rel="stylesheet" href="{{ $sitemin.RelPermalink }}" />
|
||||
{{ $player := resources.Get "css/player.min.css" }}
|
||||
<link rel="stylesheet" href="{{ $player.RelPermalink }}" />
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue