Back to

Package minify

Latest Go to latest

The latest major version is .

Published: Aug 14, 2020 | License: MIT | Module:


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.


type Minify

type Minify struct{}

Minify chainable context.

func New

func New() *Minify

New creates a new instance of the Minify plugin

func (*Minify) Initialize

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

func (*Minify) Name

func (*Minify) Name() string

func (*Minify) Process

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier