Skip to content

Commit a7860db

Browse files
AlfredMachineUserchrisbateman
authored andcommitted
Provided example of custom filename & localtion (chrisbateman#12)
1 parent 3b63ccb commit a7860db

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ plugins: [new Visualizer()],
2222
```
2323
This will output a file named `stats.html` in your output directory. You can modify the name/location by passing a `filename` parameter into the constructor.
2424

25+
```javascript
26+
var Visualizer = require('webpack-visualizer-plugin');
27+
28+
//...
29+
plugins: [new Visualizer({
30+
filename: './statistics.html'
31+
})],
32+
//...
33+
```
34+
2535
---
2636

2737
![](https://cloud.githubusercontent.com/assets/1145857/10471320/5b284d60-71da-11e5-8d35-7d1d4c58843a.png)

0 commit comments

Comments
 (0)