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.
npm install noop-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Conditionally use UglifyJsPlugin in production or noop in development.
Use noop() instead of noop in the plugins array.
Consider using `plugins: [ isProd && new UglifyJsPlugin() ].filter(Boolean)` instead.
Create a declaration file: declare module 'noop-webpack-plugin' { const fn: () => any; export default fn; }Use `noop()` instead of `new noop()`.
Run `npm install noop-webpack-plugin --save-dev`.
Change `plugins: [noop]` to `plugins: [noop()]`.
No dependency data recorded yet.