-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from nickpape/master
Add a README.json
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Description | ||
`gulp-core-build-webpack` is a plugin for gulp-core-build which introduces the ability to bundle various source files into a set of bundles, using webpack. | ||
|
||
# Tasks | ||
## WebpackTask | ||
|
||
### Description | ||
This task invokes webpack using a consumer-specified `webpack.config.js` on a package. | ||
|
||
### Command Line Options | ||
If the `--initwebpack` flag is passed to the command line, this task will initialize a `webpack.config.js` which bundles `lib/index.js` into `dist/{packagename}.js as a UMD module. | ||
|
||
### Config | ||
```typescript | ||
interface IWebpackConfig { | ||
configPath: string; | ||
} | ||
``` | ||
* **configPath** used to specify the local package relative path to a `webpack.config.js` | ||
|
||
Usage: | ||
```typescript | ||
build.webpack.setConfig({ | ||
configPath: "./webpack.config.js" | ||
}) | ||
``` |