Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
authorSatowTakeshi <doublequotation@gmail.com>2020-02-29 12:44:05 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-03-20 22:35:57 +0300
commit574c2959b8d3338764fa1db102a5e0fd6ed322d9 (patch)
tree185d13348f474d1bb0bb2b0fbfd6bec9d11c8f5e /tpl
parent99958f90fedec11d749a1397300860aa8e8459c2 (diff)
Add minify config
Fixes #6750 Updates #6892
Diffstat (limited to 'tpl')
-rw-r--r--tpl/resources/resources.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/tpl/resources/resources.go b/tpl/resources/resources.go
index be10510f2..a1055632c 100644
--- a/tpl/resources/resources.go
+++ b/tpl/resources/resources.go
@@ -46,13 +46,18 @@ func New(deps *deps.Deps) (*Namespace, error) {
return nil, err
}
+ minifyClient, err := minifier.New(deps.ResourceSpec)
+ if err != nil {
+ return nil, err
+ }
+
return &Namespace{
deps: deps,
scssClient: scssClient,
createClient: create.New(deps.ResourceSpec),
bundlerClient: bundler.New(deps.ResourceSpec),
integrityClient: integrity.New(deps.ResourceSpec),
- minifyClient: minifier.New(deps.ResourceSpec),
+ minifyClient: minifyClient,
postcssClient: postcss.New(deps.ResourceSpec),
templatesClient: templates.New(deps.ResourceSpec, deps),
}, nil