Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mquy/webpack-compiling-stats-plugin
Webpack plugin to output compiling stats
https://github.com/mquy/webpack-compiling-stats-plugin
compiling metrics stats time webpack webpack-plugin
Last synced: about 2 months ago
JSON representation
Webpack plugin to output compiling stats
- Host: GitHub
- URL: https://github.com/mquy/webpack-compiling-stats-plugin
- Owner: MQuy
- License: mit
- Created: 2020-02-09T12:06:19.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T01:50:59.000Z (about 2 years ago)
- Last Synced: 2024-11-28T05:34:40.059Z (about 2 months ago)
- Topics: compiling, metrics, stats, time, webpack, webpack-plugin
- Language: JavaScript
- Size: 2.24 MB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Webpack Compiling Stats Plugin
Webpack plugin to output compiling stats
[![npm][npm]][npm-url]
[![node][node]][node-url]
[![deps][deps]][deps-url]
[![licenses][licenses]][licenses-url]### Installation
Via npm:
```bash
$ npm install webpack-compiling-stats-plugin --save-dev
```Via yarn:
```bash
$ yarn add -D webpack-compiling-stats-plugin
```![output](https://i.imgur.com/YY4DPUF.png)
### Usage
```js
const CompilingStatsPlugin = require('webpack-compiling-stats-plugin');const webpackConfig = {
...
plugins: [
new CompilingStatsPlugin()
]
}
```✍️ when using `thread-loader`, all the same file types have to be placed in the same rule.
```js
rules: [
{
test: /\.(js|jsx)$/,
loader: "eslint-loader",
enforce: "pre"
},
{
test: /\.(js|jsx)$/,
use: ["thread-loader", "babel-loader"]
}
];->
rules: [
{
test: /\.(js|jsx)$/,
use: ["thread-loader", "babel-loader", "eslint-loader"]
}
];```
### Configuration
```js
new CompilingStatsPlugin(options);
```#### ignoredPlugins (default: `[native webpack plugins]`)
List of webpack plugins are ignored when analyzing/logging
#### threadhold (default: `0`)
The minimum time is accepted when logging
#### log
The function logs stats
[npm]: https://img.shields.io/npm/v/webpack-compiling-stats-plugin.svg
[npm-url]: https://npmjs.com/package/webpack-compiling-stats-plugin
[node]: https://img.shields.io/node/v/webpack-compiling-stats-plugin.svg
[node-url]: https://nodejs.org
[deps]: https://img.shields.io/david/MQuy/webpack-compiling-stats-plugin.svg
[deps-url]: https://david-dm.org/MQuy/webpack-compiling-stats-plugin
[licenses]: https://img.shields.io/github/license/MQuy/webpack-compiling-stats-plugin.svg
[licenses-url]: https://github.com/MQuy/webpack-compiling-stats-plugin/blob/master/LICENSE