mirror of
https://github.com/gohugoio/hugo.git
synced 2025-12-13 20:36:04 +01:00
commands: Map --minify CLI flag to the correct configuration key
Closes #13988
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
b1b0cdee3a
commit
404fd9e512
@@ -76,7 +76,7 @@ func flagsToCfgWithAdditionalConfigBase(cd *simplecobra.Commandeer, cfg config.P
|
||||
|
||||
// Flags with a different name in the config.
|
||||
keyMap := map[string]string{
|
||||
"minify": "minifyOutput",
|
||||
"minify": "minify.minifyOutput",
|
||||
"destination": "publishDir",
|
||||
"editor": "newContentEditor",
|
||||
}
|
||||
|
||||
13
testscripts/commands/hugo__minify_issue13988.txt
Normal file
13
testscripts/commands/hugo__minify_issue13988.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
hugo --minify --logLevel=info
|
||||
|
||||
! stderr 'deprecated'
|
||||
grep '<p>one</p><p>two</p>' public/index.html
|
||||
|
||||
-- hugo.toml --
|
||||
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
||||
-- content/_index.md --
|
||||
one
|
||||
|
||||
two
|
||||
-- layouts/all.html --
|
||||
{{ .Content }}
|
||||
Reference in New Issue
Block a user