print-chunks-plugin

0.1.1 • Public • Published

print-chunks-plugin

npm package npm package

Outputs exactly what went into each chunk

The code is taken from the webpack documentation

I find this so useful for debugging. But there's no package in the npm.

install

npm i -D print-chunks-plugin

usage

var PrintChunksPlugin = require("print-chunks-plugin");
var webpackConfig = {
  entry: "index.js",
  output: {
    path: __dirname + "/dist",
    filename: "index_bundle.js",
  },
  plugins: [new PrintChunksPlugin()],
  // or with option:
  plugins: [new PrintChunksPlugin({ showFull: true })],
};

Options

  • showFull: stringify the result to get rid of the 100 array output limit of console.log, learn more
    • type: bool
    • default: false

Readme

Keywords

Package Sidebar

Install

npm i print-chunks-plugin

Weekly Downloads

0

Version

0.1.1

License

ISC

Unpacked Size

3.79 kB

Total Files

4

Last publish

Collaborators

  • wayou