Skip to content

Commit b92557a

Browse files
author
李昕亮
committed
📝update
update md
1 parent f6ab52f commit b92557a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111
> 🔧A webpack plugin to inline source in html, wrapper of inline-source.
1212
13+
### Env
14+
15+
* Node - v4.7.0
16+
* npm - 2.15.11
17+
* webpack - ^1.14.0
18+
1319
## Install
1420

1521
```shell
@@ -111,6 +117,20 @@ new HtmlInlineSourceWebpackPlugin([
111117

112118
see [here](https://github.com/popeindustries/inline-source#usage).
113119

120+
#### Callback
121+
122+
```js
123+
new HtmlInlineSourceWebpackPlugin(function () {
124+
console.log('inline source done!');
125+
})
126+
/* or */
127+
new HtmlInlineSourceWebpackPlugin({
128+
/* option */
129+
}, function () {
130+
console.log('inline source done!');
131+
})
132+
```
133+
114134
## Related
115135

116136
* [inline-source](https://www.npmjs.com/package/inline-source)

0 commit comments

Comments
 (0)