File tree 1 file changed +38
-0
lines changed
1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments