Skip to content

Commit

Permalink
use go generate instead of a makefile
Browse files Browse the repository at this point in the history
this is hardly better, but since you have to invoke make manually anyways, having to invoke go generate manually is fine too
  • Loading branch information
pixelcmtd committed Feb 15, 2024
1 parent 4d1ebb2 commit 63bed65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Makefile

This file was deleted.

2 changes: 2 additions & 0 deletions redirector.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
"github.com/prometheus/client_golang/prometheus"
)

//go:generate npx html-minifier --collapse-whitespace --remove-comments --remove-tag-whitespace --minify-css true --minify-js true -o response.min.html response.html

//go:embed response.min.html
var response string

Expand Down

0 comments on commit 63bed65

Please sign in to comment.