Socket
Book a DemoInstallSign in
Socket

@moped/plugin-noop

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moped/plugin-noop

This module provides an empty webpack plugin that doesn't do anything. It is part of the moped suite of utilities for creating composable configs for building node.js and react apps.

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

plugin-noop

This module provides an empty webpack plugin that doesn't do anything. It is part of the moped suite of utilities for creating composable configs for building node.js and react apps.

This is useful if you need to enable/disable a plugin for different environments. We return this instead of ExtractTextPlugin in @moped/rule-css in development.

Installation

yarn add --dev @moped/plugin-noop

Usage

const NoOpPlugin = require('@moped/plugin-noop');

module.exports = {
  entry: __dirname + '/src/index.js',
  output: {
    path: __dirname + '/build',
    filename: 'index.js',
    publicPath: '/',
  },
  plugins: [
    process.env.NODE_ENV === 'development'
      ? new NoOpPlugin()
      : new SomeOtherPlugin(),
  ],
};

Licence

MIT

FAQs

Package last updated on 02 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts