mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 06:14:42 -04:00
Some minify configuration adjustments
This commit is contained in:
parent
02219f7877
commit
0f98184b09
@ -193,6 +193,9 @@ markup
|
|||||||
menu
|
menu
|
||||||
: See [Add Non-content Entries to a Menu](/content-management/menus/#add-non-content-entries-to-a-menu).
|
: See [Add Non-content Entries to a Menu](/content-management/menus/#add-non-content-entries-to-a-menu).
|
||||||
|
|
||||||
|
minify
|
||||||
|
: See [Configure Minify](#configure-minify)
|
||||||
|
|
||||||
module
|
module
|
||||||
: Module config see [Module Config](/hugo-modules/configuration/).{{< new-in "0.56.0" >}}
|
: Module config see [Module Config](/hugo-modules/configuration/).{{< new-in "0.56.0" >}}
|
||||||
|
|
||||||
@ -481,6 +484,14 @@ The above will try first to extract the value for `.Date` from the filename, the
|
|||||||
|
|
||||||
Hugo v0.20 introduced the ability to render your content to multiple output formats (e.g., to JSON, AMP html, or CSV). See [Output Formats][] for information on how to add these values to your Hugo project's configuration file.
|
Hugo v0.20 introduced the ability to render your content to multiple output formats (e.g., to JSON, AMP html, or CSV). See [Output Formats][] for information on how to add these values to your Hugo project's configuration file.
|
||||||
|
|
||||||
|
## Configure Minify
|
||||||
|
|
||||||
|
{{< new-in "0.68.0" >}}
|
||||||
|
|
||||||
|
Default configuration:
|
||||||
|
|
||||||
|
{{< code-toggle config="minify" />}}
|
||||||
|
|
||||||
## Configure File Caches
|
## Configure File Caches
|
||||||
|
|
||||||
Since Hugo 0.52 you can configure more than just the `cacheDir`. This is the default configuration:
|
Since Hugo 0.52 you can configure more than just the `cacheDir`. This is the default configuration:
|
||||||
|
@ -1415,7 +1415,7 @@
|
|||||||
"goldmark": {
|
"goldmark": {
|
||||||
"renderer": {
|
"renderer": {
|
||||||
"hardWraps": false,
|
"hardWraps": false,
|
||||||
"xHTML": false,
|
"xhtml": false,
|
||||||
"unsafe": false
|
"unsafe": false
|
||||||
},
|
},
|
||||||
"parser": {
|
"parser": {
|
||||||
@ -1452,14 +1452,15 @@
|
|||||||
"footnoteReturnLinkContents": ""
|
"footnoteReturnLinkContents": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"minifiers": {
|
"minify": {
|
||||||
|
"minifyOutput": false,
|
||||||
|
"disableHTML": false,
|
||||||
|
"disableCSS": false,
|
||||||
|
"disableJS": false,
|
||||||
|
"disableJSON": false,
|
||||||
|
"disableSVG": false,
|
||||||
|
"disableXML": false,
|
||||||
"tdewolff": {
|
"tdewolff": {
|
||||||
"enableHtml": true,
|
|
||||||
"enableCss": true,
|
|
||||||
"enableJs": true,
|
|
||||||
"enableJson": true,
|
|
||||||
"enableSvg": true,
|
|
||||||
"enableXml": true,
|
|
||||||
"html": {
|
"html": {
|
||||||
"keepConditionalComments": true,
|
"keepConditionalComments": true,
|
||||||
"keepDefaultAttrVals": true,
|
"keepDefaultAttrVals": true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user