Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

@bundle-analyzer/core

Official Node.js package compatible with Bundle Analyzer service.

Install

npm install --save-dev @bundle-analyzer/core

Usage

import { uploadStats } from '@bundle-analyzer/core'
import webpackStats from './webpack-stats.json'

uploadStats({ webpackStats, token: '<repository-token>' })
  .then(() => {
    console.log('uploaded)
  })

Options

webpackStats

Stats generated from webpack.

token

You can specify the token using options or environment variable BUNDLE_ANALYZER_TOKEN.

fileSystem

Custom filesystem.

context

Search the config file from this repository.

configFile

Specify a custom config file.

Complete documentation

👉 See full documentation

License

MIT