-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Legacy In It Stats Plugin | ||
|
||
## Description | ||
|
||
This plugin is used to generate stats file for webpack and send it to the in-it server. | ||
to analyze the bundles of your app over time. | ||
|
||
## Installation | ||
|
||
```bash | ||
npm install --save-dev legacy-in-it-stats-plugin | ||
``` | ||
|
||
## Usage | ||
|
||
```js | ||
// webpack.config.js | ||
const LegacyInItStatsPlugin = require('legacy-in-it-stats-plugin'); | ||
|
||
module.exports = { | ||
// ... | ||
plugins: [ | ||
new LegacyInItStatsPlugin({ | ||
// options | ||
}), | ||
], | ||
}; | ||
``` | ||
|
||
## Options | ||
|
||
reportFilename: string; // filename of the json report | ||
serverUrl: string; // url of the in-it server | ||
buildId: string; // id of the build | ||
outDir: string; // directory to write the report to | ||
name?: string; // name of the app |