diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-08-06 14:19:49 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-08-06 14:19:49 +0200 |
| commit | 6f69adb26865aa7020734d2eb52aaf959f12994a (patch) | |
| tree | 2d569c081ecb55277d3ce58c251691e4b311328d /netlify.toml | |
| parent | 7ca5f7f20a14d4a2ad0e386d018bccacfa9000dc (diff) | |
| download | gohugo-theme-ed-6f69adb26865aa7020734d2eb52aaf959f12994a.tar.gz | |
minify any supported output format (HTML, XML etc.)
Diffstat (limited to 'netlify.toml')
| -rw-r--r-- | netlify.toml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netlify.toml b/netlify.toml index aa4344f..8726ef2 100644 --- a/netlify.toml +++ b/netlify.toml @@ -18,7 +18,7 @@ # here but we recommend using the Netlify UI for sensitive # values to keep them out of your source repository. [context.production] - command = 'hugo --source=exampleSite --baseURL ${URL} --destination ../public' + command = 'hugo --source=exampleSite --baseURL ${URL} --destination ../public --minify' [context.production.environment] HUGO_ENV = 'production' @@ -27,7 +27,7 @@ # Deploy Preview context: all deploys generated from # a pull/merge request will inherit these settings. [context.deploy-preview] - command = 'go run netlify-pr.go; hugo --source=exampleSite --buildDrafts --buildFuture --baseURL ${DEPLOY_PRIME_URL} --destination ../public' + command = 'go run netlify-pr.go; hugo --source=exampleSite --buildDrafts --buildFuture --baseURL ${DEPLOY_PRIME_URL} --destination ../public --minify' [context.deploy-preview.environment] HUGO_ENV = 'development' |
