goldsmith-components: Index | Files

package minify

import ""

Package minify removes superfluous data from a variety of web formats without modifying their behavior in web browsers. This plugin is useful for reducing bandwidth usage, but should be disabled for development. This can be accomplished by conditionally excluding it using the "condition" filter.


Package Files


type Minify Uses

type Minify struct{}

Minify chainable context.

func New Uses

func New() *Minify

New creates a new instance of the Minify plugin

func (*Minify) Initialize Uses

func (*Minify) Initialize(context *goldsmith.Context) (goldsmith.Filter, error)

func (*Minify) Name Uses

func (*Minify) Name() string

func (*Minify) Process Uses

func (*Minify) Process(context *goldsmith.Context, inputFile *goldsmith.File) error

Package minify imports 11 packages (graph). Updated 2019-04-08. Refresh now. Tools for package owners.