chore: generate assets before build

This commit is contained in:
wpetit 2022-05-12 18:27:27 +02:00
parent fe3b807b98
commit af5d7a1d14
1 changed files with 2 additions and 2 deletions

View File

@ -23,11 +23,11 @@ lint: ## Lint sources code
build: build-frmd ## Build artefacts
build-frmd: ## Build executable
build-frmd: deps tailwind ## Build executable
CGO_ENABLED=0 go build -v -o ./bin/frmd ./cmd/frmd
.PHONY: tailwind
tailwind:
tailwind: deps
npx tailwindcss -i ./internal/server/assets/src/main.css -o ./internal/server/assets/dist/main.css $(TAILWINDCSS_ARGS)
internal/server/assets/dist/main.css: tailwind