noop-webpack-plugin

🤷‍♀️ Webpack plugin that does nothing.

MIT License

Downloads
15.3K
Stars
4
Committers
1

BEST PRACTICES 👉 https://github.com/webpack/webpack/issues/5493#issuecomment-321705298

noop-webpack-plugin

Webpack plugin that does nothing

Installation

npm i noop-webpack-plugin -D

Usage

var webpack = require('webpack')
var noop = require('noop-webpack-plugin')
var isProd = process.env.NODE_ENV === 'production'

module.exports = {
  entry: './src/entry.js',
  output: {
    path: './dist',
    filename: '[name].js'
  },
  plugins: [
    isProd ? new webpack.optimize.UglifyJsPlugin() : noop()
  ]
}

License

MIT

Package Rankings
Top 7.47% on Npmjs.org
Badges
Extracted from project README
npm