Gathering detailed insights and metrics for @alexseitsinger/webpack-bundle-tracker
Gathering detailed insights and metrics for @alexseitsinger/webpack-bundle-tracker
Gathering detailed insights and metrics for @alexseitsinger/webpack-bundle-tracker
Gathering detailed insights and metrics for @alexseitsinger/webpack-bundle-tracker
Spits out some stats about webpack compilation process to a file
npm install @alexseitsinger/webpack-bundle-tracker
Typescript
Module System
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
69 Commits
2 Branches
1 Contributors
Updated on Mar 07, 2021
Latest Version
0.6.0
Package Id
@alexseitsinger/webpack-bundle-tracker@0.6.0
Unpacked Size
23.88 kB
Size
7.43 kB
File Count
23
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Spits out some stats about webpack compilation process to a file.
1npm install --save-dev webpack-bundle-tracker
1yarn add --dev webpack-bundle-tracker
1var BundleTracker = require("webpack-bundle-tracker"); 2module.exports = { 3 context: __dirname, 4 entry: { 5 app: ["./app"] 6 }, 7 8 output: { 9 path: require("path").resolve("./assets/bundles/"), 10 filename: "[name]-[hash].js", 11 publicPath: "http://localhost:3000/assets/bundles/" 12 }, 13 14 plugins: [ 15 new BundleTracker({ 16 path: __dirname, 17 filename: "./assets/webpack-stats.json" 18 }) 19 ] 20};
./assets/webpack-stats.json
will look like,
1{ 2 "status": "done", 3 "chunks": { 4 "app": [ 5 { 6 "name": "app-0828904584990b611fb8.js", 7 "publicPath": "http://localhost:3000/assets/bundles/app-0828904584990b611fb8.js", 8 "path": "/home/user/project-root/assets/bundles/app-0828904584990b611fb8.js" 9 } 10 ] 11 } 12}
In case webpack is still compiling, it'll look like,
1{ 2 "status": "compiling" 3}
And errors will look like,
1{ 2 "status": "error", 3 "file": "/path/to/file/that/caused/the/error", 4 "error": "ErrorName", 5 "message": "ErrorMessage" 6}
ErrorMessage
shows the line and column that caused the error.
And in case logTime
option is set to true
, the output will look like,
{
"status":"done",
"chunks":{
"app":[{
"name":"app-0828904584990b611fb8.js",
"publicPath":"http://localhost:3000/assets/bundles/app-0828904584990b611fb8.js",
"path":"/home/user/project-root/assets/bundles/app-0828904584990b611fb8.js"
}]
},
"startTime":1440535322138,
"endTime":1440535326804
}
By default, the output JSON will not be indented. To increase readability, you can use the indent
option to make the output legible. By default it is off. The value that is set here will be directly
passed to the space
parameter in JSON.stringify
. More information can be found here
Name | Type | Default | Description |
---|---|---|---|
path | {String} | '.' | Output directory of bundle tracker JSON file . |
filename | {String} | 'webpack-stats.json' | Name of the bundle tracker JSON file. |
publicPath | {String} | ? | Override output.publicPath from Webpack config. |
logTime | {Boolean} | false | Output startTime and endTime properties in bundle tracker JSON file. |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
65 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More