Skip to content

wayou/print-chunks-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

webpack plugin to print chunks for bundle

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published