nwp

noop-webpack-plugin

πŸ€·β€β™€οΈ Webpack plugin that does nothing.

Showing:

Popularity

Downloads/wk

2.9K

GitHub Stars

3

Maintenance

Last Commit

3yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

BEST PRACTICES πŸ‘‰ https://github.com/webpack/webpack/issues/5493#issuecomment-321705298

noop-webpack-plugin

npm

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100