Skip to content

Commit

Permalink
Add example to use plulgin with options
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuanyuWang authored Oct 13, 2017
1 parent c660306 commit 4899438
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,18 @@ Note for [browserify-shim](https://github.com/thlorenz/browserify-shim), the con
#### plugin
Type: `[String || Function]`
Register a browserify plugin with the bundle. As with transforms, plugins are identified with either their NPM name (String) or a function literal.
```javascript
browserify: {
dev: {
options: {
plugin: [
'coffeeify', // register plugin by name
['browserify-hmr', { noServe : true }] // register plugin with name and options
]
}
}
}
```

#### browserifyOptions
Type: Object
Expand Down

0 comments on commit 4899438

Please sign in to comment.