webpack-debug-plugin

1.0.0 • Public • Published

webpack-debug-plugin

Inject useful debug info to each entry js globally

Highly inspired by BannerPlugin

Usage

npm install --save-dev webpack-debug-plugin
 
# For Webpack 3 
npm install --save-dev webpack-debug-plugin@0.x
const DebugPlugin = require('webpack-debug-plugin');
// webpack.config.js
{
  plugins: [
    new DebugPlugin(options)
  ]
}

Options

{
  template: Function,
  multiple: boolean,
  variableName: string,
  test: string | RegExp | Array,
  include: string | RegExp | Array,
  exclude: string | RegExp | Array,
}

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i webpack-debug-plugin

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

6.94 kB

Total Files

6

Last publish

Collaborators

  • jasonslyvia