diff options
author | SatowTakeshi <doublequotation@gmail.com> | 2020-02-29 12:44:05 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-03-20 22:35:57 +0300 |
commit | 574c2959b8d3338764fa1db102a5e0fd6ed322d9 (patch) | |
tree | 185d13348f474d1bb0bb2b0fbfd6bec9d11c8f5e /hugolib | |
parent | 99958f90fedec11d749a1397300860aa8e8459c2 (diff) |
Add minify config
Fixes #6750
Updates #6892
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/hugo_sites.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go index 04a231fdf..dca9e4968 100644 --- a/hugolib/hugo_sites.go +++ b/hugolib/hugo_sites.go @@ -408,7 +408,12 @@ func applyDeps(cfg deps.DepsCfg, sites ...*Site) error { s.Deps = d // Set up the main publishing chain. - s.publisher = publisher.NewDestinationPublisher(d.PathSpec.BaseFs.PublishFs, s.outputFormatsConfig, s.mediaTypesConfig, cfg.Cfg.GetBool("minify")) + pub, err := publisher.NewDestinationPublisher(d.PathSpec.BaseFs.PublishFs, s.outputFormatsConfig, s.mediaTypesConfig, cfg.Cfg) + + if err != nil { + return err + } + s.publisher = pub if err := s.initializeSiteInfo(); err != nil { return err |