WebpackRunnerFactory Class

Summary

Returns a Webpack runner based on either a local or global Webpack installation via npm
Assembly
Cake.Webpack.dll
Namespace
Cake.Webpack
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["WebpackRunnerFactory"] class Type type-node

Syntax

public class WebpackRunnerFactory

Methods

Name Value Summary
FromPath(DirectoryPath) WebpackRunnerFactory
Sets the working directory when webpack is executed
Global(Action<WebpackRunnerSettings>) void
Get a Webpack global runner based on a global Webpack installation, a global installation is achieved through `npm install Webpack -g`
Local(Action<WebpackLocalRunnerSettings>) void
Get a Webpack local runner based on a local Webpack installation, a local installation is achieved through `npm install Webpack`

Extension Methods

Name Value Summary
Dump<WebpackRunnerFactory>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<WebpackRunnerFactory>(WebpackRunnerFactory[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<WebpackRunnerFactory>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<WebpackRunnerFactory>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<WebpackRunnerFactory>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<WebpackRunnerFactory>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin