postcss

package
Version: v0.63.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: Apache-2.0 Imports: 12 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 is the client used to do PostCSS transformations.

func New

func New(rs *resources.Spec) *Client

New creates a new Client with the given specification.

func (*Client) Process

func (c *Client) Process(res resources.ResourceTransformer, options Options) (resource.Resource, error)

Process transforms the given Resource with the PostCSS processor.

type Options

type Options struct {

	// Set a custom path to look for a config file.
	Config string

	NoMap bool // Disable the default inline sourcemaps

	// Options for when not using a config file
	Use         string // List of postcss plugins to use
	Parser      string //  Custom postcss parser
	Stringifier string // Custom postcss stringifier
	Syntax      string // Custom postcss syntax
}

Some of the options from https://github.com/postcss/postcss-cli

func DecodeOptions

func DecodeOptions(m map[string]interface{}) (opts Options, err error)

Source Files

Jump to

Keyboard shortcuts

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