Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpape-msft committed Mar 24, 2016
1 parent 15965c9 commit 03a08fe
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@
## WebpackTask

### Description
This task
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"
})
```

0 comments on commit 03a08fe

Please sign in to comment.