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.


Package Files

options.go webpack-packr.go webpack.go


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 {

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 11 packages. Updated 2019-11-21. Refresh now. Tools for package owners.