Skip to content

Commit e101d33

Browse files
committed
Update README.md
1 parent b82c146 commit e101d33

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,27 @@ This goes great if you want to run any reporting tools or tests like selenium, p
99

1010
## Installation
1111

12-
Just install the plugin
13-
1412
`npm install --save-dev webpack-shell-plugin`
1513

1614
## Setup
15+
In `webpack.config.js`:
16+
17+
```js
18+
const WebpackShellPlugin = require('webpack-shell-plugin');
19+
20+
module.exports = {
21+
...
22+
...
23+
plugins: [
24+
new WebpackShellPlugin({onBuildStart:['echo "Webpack Start"'], onBuildEnd:['echo "Webpack End"']})
25+
],
26+
...
27+
}
28+
```
29+
30+
31+
32+
## Example
1733

1834
Insert into your webpack.config.js:
1935

0 commit comments

Comments
 (0)