Skip to content

Commit 8276186

Browse files
authored
Create README.md
1 parent 5bc67cf commit 8276186

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# cake-webpack
2+
Aliases to assist with running Webpack from Cake build scripts
3+
4+
## Usage
5+
6+
```c#
7+
#addin "Cake.Webpack"
8+
9+
Task("Webpack")
10+
.Does(() =>
11+
{
12+
Webpack.Global();
13+
Webpack.FromPath(".").Global();
14+
Webpack.Global(s => s.WithBuildMode(WebpackBuildMode.Production));
15+
Webpack.Global(s => s.OutputAsJson());
16+
Webpack.Global(s => s.WithArguments("in.js out.js --verbose"));
17+
18+
Webpack.Local();
19+
Webpack.FromPath(".").Local();
20+
Webpack.Local(s => s.SetPathToWebpackJs("some-other-directory/node_modules/webpack.bin.webpack.js"));
21+
Webpack.Local(s => s.WithBuildMode(WebpackBuildMode.Production));
22+
Webpack.Local(s => s.OutputAsJson());
23+
Webpack.Local(s => s.WithArguments("in.js out.js --verbose"));
24+
});
25+
```
26+
27+
## Documentation
28+
29+
Thanks to the cakebuild.net site, documentation can be found [here](http://cakebuild.net/api/cake.webpack/)
30+
31+
## Tests
32+
33+
Cake.Webpack is covered by a set of unit tests
34+
35+
## I cant do _insert-option-here_
36+
37+
If you have feature requests please submit them as issues, or better yet as pull requests :)
38+

0 commit comments

Comments
 (0)