Official Node.js package compatible with Bundle Analyzer service.
npm install --save-dev @bundle-analyzer/core
import { uploadStats } from '@bundle-analyzer/core'
import webpackStats from './webpack-stats.json'
uploadStats({ webpackStats, token: '<repository-token>' })
.then(() => {
console.log('uploaded)
})Stats generated from webpack.
You can specify the token using options or environment variable BUNDLE_ANALYZER_TOKEN.
Custom filesystem.
Search the config file from this repository.
Specify a custom config file.
MIT