~schnouki/schnouki.net

489f2e414024747e439bf707db1f2c20be4b578c — Thomas Jost 2 months ago 9cb951b
Simpler build using resources.PostProcess

RTFM, dude!
2 files changed, 3 insertions(+), 6 deletions(-)

M Makefile
M layouts/_default/baseof.html
M Makefile => Makefile +2 -5
@@ 15,18 15,15 @@ help:
	@echo "  make serve            Serve the site locally"
	@echo "  make upload           Upload the updated data to the live site"

build: npm-install hugo_stats.json
build: npm-install
	hugo --cleanDestinationDir

build-clean: npm-install hugo_stats.json
build-clean: npm-install
	hugo --cleanDestinationDir --gc

clean:
	rm -rf public hugo_stats.json

hugo_stats.json:
	hugo --renderToMemory

npm-install: node_modules/.keep

node_modules/.keep: package.json package-lock.json

M layouts/_default/baseof.html => layouts/_default/baseof.html +1 -1
@@ 17,7 17,7 @@
        {{- end }}
        {{- $style := $scss | resources.ToCSS $scssOptions | fingerprint }}
        {{- if hugo.IsProduction }}
          {{- $style = $style | resources.PostCSS }}
          {{- $style = $style | resources.PostCSS | resources.PostProcess }}
        {{- end }}
        <link rel="stylesheet" href="{{ $style.Permalink }}">
        {{ partial "head" . }}