{"library":"noop-webpack-plugin","title":"noop-webpack-plugin","description":"A tiny Webpack plugin that performs no operation, intended as a conditional placeholder when a noop is needed in the plugins array. Version 1.0.1 is the latest and only release. The package is stable but trivial – it creates a no-op plugin that does nothing. It has zero dependencies and is often used to replace a real plugin in development mode. Alternatives include using null or process.env checks directly, but this plugin provides a simple interface.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install noop-webpack-plugin"],"cli":null},"imports":["const noop = require('noop-webpack-plugin');","const noop = require('noop-webpack-plugin');","plugins: [ isProd ? new UglifyJsPlugin() : noop() ]"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const webpack = require('webpack');\nconst noop = require('noop-webpack-plugin');\nconst isProd = process.env.NODE_ENV === 'production';\nmodule.exports = {\n  entry: './src/index.js',\n  output: { path: './dist', filename: 'bundle.js' },\n  plugins: [\n    isProd ? new webpack.optimize.UglifyJsPlugin() : noop()\n  ]\n};","lang":"javascript","description":"Conditionally use UglifyJsPlugin in production or noop in development.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}