Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

noop-webpack-plugin

1.0.1 • Public • Published

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

Keywords

none

install

npm i noop-webpack-plugin

Downloadsweekly downloads

384

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability