Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
s00d committed Oct 16, 2019
1 parent 5744ebc commit 8fa1a1e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![npm version](https://badge.fury.io/js/webpack-shell-plugin-next.svg)](https://badge.fury.io/js/webpack-shell-plugin-next)
# Webpack Shell Plugin Next

fix webpack 4 deprecated method.
fix webpack 4 deprecated method. add typescript and other

This plugin allows you to run any shell commands before or after webpack 4 builds. This will work for both webpack 4.

Expand Down Expand Up @@ -44,14 +44,23 @@ module.exports = {

### API
* `onBeforeBuild`: array of scripts to execute before every build.

**Default: ```{scripts: [],blocking: false,parallel: false}```**
* `onBuildError`: array of scripts to execute when there is an error during compilation. **Default: [ ]**

* `onBuildError`: array of scripts to execute when there is an error during compilation.

**Default: ```{scripts: [],blocking: false,parallel: false}```**

* `onBuildStart`: configuration object for scripts that execute before a compilation.

**Default: ```{scripts: [],blocking: false,parallel: false}```**

* `onBuildEnd`: configuration object for scripts that execute after files are emitted at the end of the compilation.

**Default: ```{scripts: [],blocking: false,parallel: false}```**

* `onBuildExit`: configuration object for scripts that execute after webpack's process is complete. *Note: this event also fires in `webpack --watch` when webpack has finished updating the bundle.*

**Default: ```{scripts: [],blocking: false,parallel: false}```**


Expand Down Expand Up @@ -85,7 +94,7 @@ Pavel Kuzmin

## Change Log

### 0.7.0
### 1.0.0
```
- add ts
- add onBeforeBuild and onBuildExit
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webpack-shell-plugin-next",
"version": "1.0.0",
"version": "1.0.1",
"description": "Run shell commands before and after webpack builds",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -34,7 +34,7 @@
"script",
"opie",
"manion",
"1337"
"typescript"
],
"license": "MIT",
"bugs": {
Expand Down

0 comments on commit 8fa1a1e

Please sign in to comment.