0.0.7 • Published 7 years ago

@moped/plugin-noop v0.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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

0.0.7

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago