webpack

package
v0.14.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

View Source
var Templates = packr.New("buffalo:genny:assets:webpack", "../webpack/templates")

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

Functions

func New

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

New generator for creating webpack asset files

Types

type Options

type Options struct {
	meta.App
	Bootstrap int `json:"bootstrap"`
}

Options for creating a new webpack setup

func (*Options) Validate

func (opts *Options) Validate() error

Validate options

Jump to

Keyboard shortcuts

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