Socket
Socket
Sign inDemoInstall

webpack-bundle-analyzer

Package Overview
Dependencies
Maintainers
4
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-bundle-analyzer - npm Package Compare versions

Comparing version 4.5.0 to 4.6.0

6

CHANGELOG.md

@@ -15,2 +15,8 @@ # Changelog

## 4.6.0
* **New Feature**
* Support outputting different URL in server mode ([#520](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/520) by [@southorange1228](https://github.com/southorange1228))
* Use deterministic chunk colors (#[501](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/501) by [@CreativeTechGuy](https://github.com/CreativeTechGuy))
## 4.5.0

@@ -17,0 +23,0 @@

4

lib/BundleAnalyzerPlugin.js

@@ -37,2 +37,3 @@ "use strict";

startAnalyzer: true,
analyzerUrl: utils.defaultAnalyzerUrl,
...opts,

@@ -118,3 +119,4 @@ analyzerPort: 'analyzerPort' in opts ? opts.analyzerPort === 'auto' ? 0 : opts.analyzerPort : 8888

defaultSizes: this.opts.defaultSizes,
excludeAssets: this.opts.excludeAssets
excludeAssets: this.opts.excludeAssets,
analyzerUrl: this.opts.analyzerUrl
});

@@ -121,0 +123,0 @@ }

@@ -56,2 +56,10 @@ "use strict";

};
exports.defaultAnalyzerUrl = function (options) {
const {
listenHost,
boundAddress
} = options;
return `http://${listenHost}:${boundAddress.port}`;
};
/**

@@ -58,0 +66,0 @@ * Calls opener on a URI, but silently try / catches it.

@@ -58,3 +58,4 @@ "use strict";

excludeAssets = null,
reportTitle
reportTitle,
analyzerUrl
} = opts || {};

@@ -91,3 +92,7 @@ const analyzerOpts = {

resolve();
const url = `http://${host}:${server.address().port}`;
const url = analyzerUrl({
listenPort: port,
listenHost: host,
boundAddress: server.address()
});
logger.info(`${bold('Webpack Bundle Analyzer')} is started at ${bold(url)}\n` + `Use ${bold('Ctrl+C')} to close it`);

@@ -94,0 +99,0 @@

{
"name": "webpack-bundle-analyzer",
"version": "4.5.0",
"version": "4.6.0",
"description": "Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap",

@@ -5,0 +5,0 @@ "author": "Yury Grunin <grunin.ya@ya.ru>",

@@ -62,2 +62,3 @@ [![npm][npm]][npm-url]

|**`analyzerPort`**|`{Number}` or `auto`|Default: `8888`. Port that will be used in `server` mode to start HTTP server.|
|**`analyzerUrl`**|`{Function}` called with `{ listenHost: string, listenHost: string, boundAddress: server.address}`. [server.address comes from Node.js](https://nodejs.org/api/net.html#serveraddress)| Default: `http://${listenHost}:${boundAddress.port}`. The URL printed to console with server mode.|
|**`reportFilename`**|`{String}`|Default: `report.html`. Path to bundle report file that will be generated in `static` mode. It can be either an absolute path or a path relative to a bundle output directory (which is output.path in webpack config).|

@@ -64,0 +65,0 @@ |**`reportTitle`**|`{String\|function}`|Default: function that returns pretty printed current date and time. Content of the HTML `title` element; or a function of the form `() => string` that provides the content.|

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc