0.1.1 • Published 3 years ago

print-chunks-plugin v0.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

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
0.1.1

3 years ago

0.1.0

6 years ago

1.0.0

6 years ago