Skip to content

Files

Latest commit

Aug 20, 2021
2bb1035 · Aug 20, 2021

History

History
38 lines (28 loc) · 1.14 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.14 KB

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