Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenotron/cpupro-webpack-plugin
CPU Profiling Plugin for Webpack
https://github.com/kenotron/cpupro-webpack-plugin
Last synced: 2 months ago
JSON representation
CPU Profiling Plugin for Webpack
- Host: GitHub
- URL: https://github.com/kenotron/cpupro-webpack-plugin
- Owner: kenotron
- Created: 2022-03-22T00:15:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-04T17:02:05.000Z (over 2 years ago)
- Last Synced: 2024-10-20T03:56:26.622Z (3 months ago)
- Language: TypeScript
- Size: 63.5 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.json
Awesome Lists containing this project
README
# CPU Profile Webpack Plugin
Webpack provides a really detailed `webpack.debug.ProfilingPlugin`, but it only does CPU Profiling. Further, it doesn't seem to work with config arrays. We can do much better. We can leverage the work of @lahmatiy - the excellent cpupro: https://github.com/lahmatiy/cpupro CPU Profiler to generate a much better visualization of hot paths in our webpack plugins.
## How to configure
Plug this into your webpack configuration like so:
```js
const CPUProfileWebpackPlugin = require("cpupro-webpack-plugin");module.exports = {
plugins: [
new CPUProfileWebpackPlugin();
]
}
```You may want to specify an option with this plugin:
```js
new CPUProfileWebpackPlugin({
outputPath: "/some/place/my.cpuprofile"
})
```