diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-10-30 09:29:38 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-10-30 11:46:40 +0100 |
commit | 89bd025ebfd2c559039826641702941fc35a7fdb (patch) | |
tree | 96b457737db99ffd1a27d502798257f0e7d79db6 /magefile.go | |
parent | 62567d38205a61134a6822d37a534520772419f1 (diff) | |
download | hugo-89bd025ebfd2c559039826641702941fc35a7fdb.tar.gz hugo-89bd025ebfd2c559039826641702941fc35a7fdb.zip |
Build without the deploy feature by default
Build tags setup changed to:
* !nodeploy => withdeploy
* nodeploy => !withdeploy
Also move the deploy feature out into its own release archives.
See #12994 for the primary motivation for this change. But this also greatly reduces the number of dependencies in Hugo when you don't need this feature and cuts the binary size greatly.
Fixes #12994
Diffstat (limited to 'magefile.go')
-rw-r--r-- | magefile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/magefile.go b/magefile.go index 142b9160a..9919e0185 100644 --- a/magefile.go +++ b/magefile.go @@ -334,7 +334,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 + // To build with `hugo deploy`, use HUGO_BUILD_TAGS=withdeploy if envtags := os.Getenv("HUGO_BUILD_TAGS"); envtags != "" { return envtags } |