webpack

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct{}

Plugin takes care of webpack related operations that the CLI needs to take care. I contains methods to satisfy the needs of each of the commands that will call it.

func (Plugin) Build

func (w Plugin) Build(ctx context.Context, root string, args []string) error

Build runs webpack build from the package.json scripts. if the project uses yarn will run `yarn run build`, if the project uses npm will run `npm run build`. otherwise will not run any of those.

[Important] it assumes: - that there is a build script in package.json. - that yarn or npm is installed in the system.

func (Plugin) Develop

func (w Plugin) Develop(ctx context.Context, root string) error

func (Plugin) Name

func (w Plugin) Name() string

Jump to

Keyboard shortcuts

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