@statoscope/stats-validator-plugin-webpack
Advanced tools
Comparing version 5.7.1 to 5.7.2
{ | ||
"name": "@statoscope/stats-validator-plugin-webpack", | ||
"version": "5.7.1", | ||
"version": "5.7.2", | ||
"description": "Plugin for @statoscope/stats-validator to validate webpack stats", | ||
@@ -24,3 +24,3 @@ "main": "./dist/index.js", | ||
"@statoscope/stats-extension-compressed": "5.7.1", | ||
"@statoscope/stats-validator": "5.7.1", | ||
"@statoscope/stats-validator": "5.7.2", | ||
"@statoscope/types": "5.7.1", | ||
@@ -34,3 +34,3 @@ "@statoscope/webpack-model": "5.7.1", | ||
}, | ||
"gitHead": "064a4cec944bc1438f48afbe8c127f22d82b4a60" | ||
"gitHead": "6de06d66c82f9a56f76ccc09807b7c2fe8515ae0" | ||
} |
@@ -10,2 +10,22 @@ # stats-validator-plugin-webpack | ||
## Usage | ||
1. Install | ||
`npm i -D @statoscope/stats-validator-plugin-webpack` | ||
2. Add into `statoscope.config.js` | ||
```js | ||
module.exports = { | ||
validate: { | ||
// add webpack plugin with rules | ||
plugins: ['@statoscope/webpack'], | ||
rules: { | ||
// ensures that build-time of your bundle hasn't exceeded 10 sec | ||
'@statoscope/webpack/build-time-limits': ['error', {global: 10000}], | ||
// any other rules | ||
} | ||
} | ||
} | ||
``` | ||
## Rules | ||
@@ -12,0 +32,0 @@ |
94892
44
+ Added@statoscope/config@5.7.2(transitive)
+ Added@statoscope/stats-validator@5.7.2(transitive)
- Removed@statoscope/config@5.7.1(transitive)
- Removed@statoscope/stats-validator@5.7.1(transitive)