Back to godoc.org

Package minify

v0.0.0-...-42a2ac9
Latest Go to latest

The latest major version is .

Published: Aug 14, 2020 | License: MIT | Module: github.com/FooSoft/goldsmith-components

Overview

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

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