This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Webpack.
Summary
Webpack alias
- Assembly
- Cake
.Webpack .dll - Namespace
- Cake
.Webpack - Containing Type
- WebpackRunnerAliases
Syntax
public static WebpackRunnerFactory Webpack(this ICakeContext context)
Examples
Cake task:
Task("Webpack")
.Does(() =>
{
Webpack.Global();
Webpack.FromPath(".").Global();
Webpack.Global(s => s.WithBuildMode(WebpackBuildMode.Production));
Webpack.Global(s => s.OutputAsJson());
Webpack.Global(s => s.WithArguments("in.js out.js --verbose"));
Webpack.Local();
Webpack.FromPath(".").Local();
Webpack.Local(s => s.SetPathToWebpackJs("some-other-directory/node_modules/webpack.bin.webpack.js"));
Webpack.Local(s => s.WithBuildMode(WebpackBuildMode.Production));
Webpack.Local(s => s.OutputAsJson());
Webpack.Local(s => s.WithArguments("in.js out.js --verbose"));
});
Attributes
Type | Description |
---|---|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | the cake context |
Return Value
Type | Description |
---|---|
WebpackRunnerFactory | webpack runner options |