print-chunks-plugin
v0.1.1
Published
outputs exactly what went into each chunk
Downloads
9
Readme
print-chunks-plugin
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 ofconsole.log
, learn more- type:
bool
- default:
false
- type: