diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-08-06 22:22:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-06 22:22:24 +0200 |
| commit | 7296f0fde36aa651b8e8783cc575f9bdb697c6f0 (patch) | |
| tree | d31cf8a11d521d1f4d6eecb124474998e6bb4618 | |
| parent | ec510e7a8e21800f0f24bca43df2c7e8bf199062 (diff) | |
| parent | a9ac0e63848bed64a29c4646275f1b19b7b7108a (diff) | |
| download | gohugo-theme-ed-7296f0fde36aa651b8e8783cc575f9bdb697c6f0.tar.gz | |
Merge pull request #15 from sergeyklay/feature/minify
minify any supported output format (HTML, XML etc.)
| -rw-r--r-- | exampleSite/config/_default/config.yaml | 3 | ||||
| -rw-r--r-- | netlify.toml | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/exampleSite/config/_default/config.yaml b/exampleSite/config/_default/config.yaml index 930f608..b0fd623 100644 --- a/exampleSite/config/_default/config.yaml +++ b/exampleSite/config/_default/config.yaml @@ -43,6 +43,9 @@ googleAnalytics: '' minify: # Do not minify XML files to avoid CDATA escape issues disableXML: true + tdewolff: + html: + keepQuotes: true outputs: home: [HTML, Atom, FEED, JSONFEED, JSON, MANIFEST, humanstxt] diff --git a/netlify.toml b/netlify.toml index aa4344f..09d23c2 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' @@ -79,8 +79,7 @@ magnetometer=(), microphone=(), payment=(), - usb=(), - interest-cohort=()''' + usb=()''' # CSP makes it possible for server administrators to reduce or eliminate # the vectors by which XSS can occur by specifying the domains that the # browser should consider to be valid sources of executable scripts. |
