buffalo: github.com/gobuffalo/buffalo/genny/assets/webpack Index | Files

package webpack

import "github.com/gobuffalo/buffalo/genny/assets/webpack"

You can use the "packr clean" command to clean up this, and any other packr generated files.

Index

Package Files

options.go webpack-packr.go webpack.go

Variables

var BinPath = func() string {
    s := filepath.Join("node_modules", ".bin", "webpack")
    if runtime.GOOS == "windows" {
        s += ".cmd"
    }
    return s
}()

BinPath is the path to the local install of webpack

var Templates = packr.New("github.com/gobuffalo/buffalo/genny/assets/webpack", "../webpack/templates")

Templates used for generating webpack (exported mostly for the "fix" command)

func New Uses

func New(opts *Options) (*genny.Generator, error)

New generator for creating webpack asset files

type Options Uses

type Options struct {
    meta.App
}

Options for creating a new webpack setup

func (*Options) Validate Uses

func (opts *Options) Validate() error

Validate options

Package webpack imports 9 packages (graph) and is imported by 8 packages. Updated 2019-06-26. Refresh now. Tools for package owners.