mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
build: Allow optional "nodeploy" tag to exclude deploy command from bin
Fixes #7826
This commit is contained in:
@@ -354,6 +354,7 @@ func buildFlags() []string {
|
||||
func buildTags() string {
|
||||
// To build the extended Hugo SCSS/SASS enabled version, build with
|
||||
// HUGO_BUILD_TAGS=extended mage install etc.
|
||||
// To build without `hugo deploy` for smaller binary, use HUGO_BUILD_TAGS=nodeploy
|
||||
if envtags := os.Getenv("HUGO_BUILD_TAGS"); envtags != "" {
|
||||
return envtags
|
||||
}
|
||||
|
Reference in New Issue
Block a user