Skip to content

Commit ef80d9f

Browse files
committed
Update README.md
1 parent 9d20b1e commit ef80d9f

File tree

2 files changed

+2
-32
lines changed

2 files changed

+2
-32
lines changed

README.md

+2-32
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div align="center">
2-
<img src="https://user-images.githubusercontent.com/19170080/29996498-a5ed1944-8fcd-11e7-8729-625eb997dbfe.png" />
2+
<img src="assets/filemanager.png" />
33
</div>
44

55
# Webpack File Manager Plugin
@@ -76,40 +76,10 @@ module.exports = {
7676
}
7777
```
7878

79-
If you need to preserve the order in which operations will run you can set the onStart and onEnd events to be Arrays. In this example below, in the onEnd event the copy action will run first, and then the delete after:
80-
81-
```js
82-
const FileManagerPlugin = require('filemanager-webpack-plugin');
83-
84-
module.exports = {
85-
...
86-
...
87-
plugins: [
88-
new FileManagerPlugin({
89-
onEnd: [
90-
{
91-
copy: [
92-
{ source: "./dist/bundle.js", destination: "./newfile.js" }
93-
]
94-
},
95-
{
96-
delete: [
97-
"./dist/bundle.js"
98-
]
99-
}
100-
]
101-
})
102-
],
103-
...
104-
}
105-
106-
107-
```
108-
10979
## Options
11080

11181
```js
112-
new FileManagerPlugin(fileEvents, options);
82+
new FileManagerPlugin(fileEvents);
11383
```
11484

11585
#### File Events

assets/filemanager.png

6.45 KB
Loading

0 commit comments

Comments
 (0)