hugo: github.com/gohugoio/hugo/resources/resource_transformers/tocss/scss Index | Files

package scss

import "github.com/gohugoio/hugo/resources/resource_transformers/tocss/scss"

Index

Package Files

client.go client_notavailable.go

func Supports Uses

func Supports() bool

Used in tests.

type Client Uses

type Client struct {
    // contains filtered or unexported fields
}

func New Uses

func New(fs *filesystems.SourceFilesystem, rs *resources.Spec) (*Client, error)

func (*Client) ToCSS Uses

func (c *Client) ToCSS(res resources.ResourceTransformer, opts Options) (resource.Resource, error)

type Options Uses

type Options struct {

    // Hugo, will by default, just replace the extension of the source
    // to .css, e.g. "scss/main.scss" becomes "scss/main.css". You can
    // control this by setting this, e.g. "styles/main.css" will create
    // a Resource with that as a base for RelPermalink etc.
    TargetPath string

    // Hugo automatically adds the entry directories (where the main.scss lives)
    // for project and themes to the list of include paths sent to LibSASS.
    // Any paths set in this setting will be appended. Note that these will be
    // treated as relative to the working dir, i.e. no include paths outside the
    // project/themes.
    IncludePaths []string

    // Default is nested.
    // One of nested, expanded, compact, compressed.
    OutputStyle string

    // Precision of floating point math.
    Precision int

    // When enabled, Hugo will generate a source map.
    EnableSourceMap bool
}

func DecodeOptions Uses

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

Package scss imports 7 packages (graph) and is imported by 9 packages. Updated 2020-04-01. Refresh now. Tools for package owners.