webpack

package
v0.16.17 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

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

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("github.com/gobuffalo/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
}

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