Skip to content

Commit

Permalink
chore: add --cleanDestinationDir
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Oct 18, 2020
1 parent c60a822 commit a2c9cba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ bumphugo:

.PHONY: build
build:
$(eval opt := --minify --themesDir ../../ --baseURL $(BASE_URL))
$(eval opt := --minify --themesDir ../../ --baseURL $(BASE_URL) --cleanDestinationDir)
$(DOCKER_COMPOSE) run --rm --entrypoint=hugo hugo $(opt)

.PHONY: npm-build
npm-build:
cd ./exampleSite && \
hugo --minify --themesDir ../../ --baseURL $(BASE_URL)
hugo --minify --themesDir ../../ --baseURL $(BASE_URL) --cleanDestinationDir

.PHONY: test
test:
Expand All @@ -61,5 +61,6 @@ cibuild:
hugo --minify \
--themesDir ../../ \
--baseURL $(BASE_URL) \
--cleanDestinationDir \
--i18n-warnings --path-warnings --debug \
--templateMetrics --templateMetricsHints

0 comments on commit a2c9cba

Please sign in to comment.