项目作者: TheLarkInn

项目描述 :
🐐🐐🐐🐐 bundle-buddy-webpack-plugin 🐐🐐🐐🐐
高级语言: JavaScript
项目地址: git://github.com/TheLarkInn/bundle-buddy-webpack-plugin.git
创建时间: 2017-07-12T16:16:50Z
项目社区:https://github.com/TheLarkInn/bundle-buddy-webpack-plugin

开源协议:MIT License

下载


bundle-buddy-webpack-plugin

npm
dependencies
devDependencies Status
Business Strategy Status

Your favorite bundle-buddy duplication analyzer, made as a webpack plugin.

Installation

Yarn

  1. yarn add bundle-buddy-webpack-plugin --dev

npm

  1. npm install bundle-buddy-webpack-plugin --save-dev

Usage

Just require the plugin into your webpack configuration, and pass it to the plugins array.

webpack.config.js

  1. const BundleBuddyWebpackPlugin = require("bundle-buddy-webpack-plugin");
  2. module.exports = {
  3. // ...
  4. plugins: [
  5. new BundleBuddyWebpackPlugin({sam: true})
  6. ]
  7. };

Options

Property Type Default Description
warnings boolean true Show/Hide warnings. BundleBuddyWebpackPlugin will emit a warning when you do not have the devtool property set in your configuration. And will notify you that it is setting it to “source-map”.

Bugs

If you believe there is an issue with the plugin itself, by all mean submit an issue!!! However this directly uses bundle-buddy and I would also verify that it is not an issue reported there first.