🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

webpack-runtime-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-runtime-analyzer

Webpack plugin for analyzing internal processes, state and structure of bundles

Source
npmnpm
Version
1.0.0-alpha3
Version published
Weekly downloads
96
-15.04%
Maintainers
1
Weekly downloads
 
Created
Source

npm

webpack-runtime-analyzer

Webpack plugin for analyzing internal processes, state and structure of bundles. Built on rempl.

Watch a video-demo

Install

npm install webpack-runtime-analyzer --save-dev

Usage

Add plugin to your webpack config:

var RuntimeAnalyzerPlugin = require('webpack-runtime-analyzer');

// ...

plugins.push(new RuntimeAnalyzerPlugin());

Start rempl server:

rempl

Also, you can use the GUI to control rempl server.

Try the example to see how it works:

cd example
npm i
npm run dev

Then open rempl server URL in your browser (http://localhost:8177 by default)

Make sure that your rempl server is up.

Plugin config

If you don't want to use default plugin config, then you can specify your own config:

new RuntimeAnalyzerPlugin({
    ui: {
        script: fs.readFileSync('/path/to/ui/bundle.js', 'utf-8'), // packed UI bundle (js + html + css + etc...)
        url: 'http://localhost:8080' // or URL to UI
    }
});

In case ui.url and ui.script are specified then ui.url will be used.

Key features

Dashboard

The list of the modules and the assets is always at hand.

Dashboad

Dependency graph

Take a look at the dependencies of the modules.

Dependency graph

File size map

Look at the file map and find out why your bundle is so big.

File size map

Realtime analyzing

Analyzing process is performing in realtime.

Realtime analyzing

UI customization

The UI built on basis.js framework.

  • Make changes in src/ui
  • Run npm run build to build the UI bundle

In the future you will may host and customize the UI at web server without building a bundle, but rempl does not support this feature at this moment.

License

MIT

Keywords

webpack

FAQs

Package last updated on 25 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts