diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-07-02 11:02:47 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-07-02 13:04:11 +0200 |
commit | 5afc89f2bfb3e582bface8a9980e60782ece9880 (patch) | |
tree | 325ac10ec7f26da64d7e20f11219d91428f64dba /publisher/publisher.go | |
parent | c1eac616d55945c28ea364f44d1e9ae12e672e11 (diff) | |
download | hugo-5afc89f2bfb3e582bface8a9980e60782ece9880.tar.gz hugo-5afc89f2bfb3e582bface8a9980e60782ece9880.zip |
Rework the build.writeStats struct
Mostly to make it easier to toggle on/off this feature from the env.
See #11191
Diffstat (limited to 'publisher/publisher.go')
-rw-r--r-- | publisher/publisher.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/publisher/publisher.go b/publisher/publisher.go index 37d8b36e4..39274b2a9 100644 --- a/publisher/publisher.go +++ b/publisher/publisher.go @@ -81,8 +81,8 @@ func NewDestinationPublisher(rs *resources.Spec, outputFormats output.Formats, m fs := rs.BaseFs.PublishFs cfg := rs.Cfg var classCollector *htmlElementsCollector - if rs.BuildConfig().WriteStats.Enabled() { - classCollector = newHTMLElementsCollector(rs.BuildConfig().WriteStats) + if rs.BuildConfig().BuildStats.Enabled() { + classCollector = newHTMLElementsCollector(rs.BuildConfig().BuildStats) } pub = DestinationPublisher{fs: fs, htmlElementsCollector: classCollector} pub.min, err = minifiers.New(mediaTypes, outputFormats, cfg) |