minifier

package
v0.56.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for minification of Resource objects. Supported minfiers are: css, html, js, json, svg and xml.

func New

func New(rs *resources.Spec) *Client

New creates a new Client given a specification. Note that it is the media types configured for the site that is used to match files to the correct minifier.

func (*Client) Minify

func (c *Client) Minify(res resource.Resource) (resource.Resource, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL