goldsmith-components: github.com/FooSoft/goldsmith-components/plugins/minify Index | Files

package minify

import "github.com/FooSoft/goldsmith-components/plugins/minify"

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.

Index

Package Files

minify.go

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) and is imported by 1 packages. Updated 2019-04-08. Refresh now. Tools for package owners.