A webpack plugin that compares the generated asset sizes against those of a base branch as part of a CI build
Last updated a year ago by supriya-raj .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install asset-compare-git-webpack-plugin 
SYNC missed versions from official npm registry.

Asset Compare Git Webpack Plugin

A webpack plugin that compares the generated asset sizes against those of a base branch as part of a CI build.

NOTE: Currently Travis is the only CI environment that is supported


npm install --save-dev asset-compare-git-webpack-plugin


In your webpack.config.js

var AssetComparePlugin = require('asset-compare-git-webpack-plugin');

module.exports = {
    // ...
    plugins: [
      new AssetComparePlugin({
        gist_id: <a github gist id>//required

This will generate a table in your CI log comparing the generated asset sizes of the current build against those of a base branch(master by default). After comparison, if any of the asset sizes has increased by more than 5% a status with failure flag is created against the current commit.

  • When this plugin is run against the base branch for the first time, it stores the asset sizes in the supplied gist.
  • Every consequent CI run against the base branch will keep updating the stats in the gist.


Type: String
Required: True

This is a required option for the plugin to work. Create a github gist and pass the gist_id here. This gist will be used to store/update the asset sizes of the base branch


Type: String Default: master

The branch, the asset sizes of which will be used to benchmark all other builds


Type: String

Personal access token used for performing git actions

CAUTION: Make sure that the owner associated with this access token is also the owner of the gist that is passed to plugin. The access token must have permissions to add status updates to commits and also to update gists

Current Tags

  • 1.0.5                                ...           latest (a year ago)

6 Versions

  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (1)
Dependents (0)

Copyright 2014 - 2016 © |