diff options
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 970c93e6c..37d8b36e4 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 { - classCollector = newHTMLElementsCollector() + if rs.BuildConfig().WriteStats.Enabled() { + classCollector = newHTMLElementsCollector(rs.BuildConfig().WriteStats) } pub = DestinationPublisher{fs: fs, htmlElementsCollector: classCollector} pub.min, err = minifiers.New(mediaTypes, outputFormats, cfg) |