minifiers

package
v0.0.0-...-5b3a7c8 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

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 wraps a minifier.

func New

func New(mediaTypes media.Types, outputFormats output.Formats, cfg config.Provider) (Client, error)

New creates a new Client with the provided MIME types as the mapping foundation. The HTML minifier is also registered for additional HTML types (AMP etc.) in the provided list of output formats.

func (Client) Transformer

func (m Client) Transformer(mediatype media.Type) transform.Transformer

Transformer returns a func that can be used in the transformer publishing chain. TODO(bep) minify config etc

Jump to

Keyboard shortcuts

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