Have ideas to improve npm?Join in the discussion! ¬Ľ

    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

    3,625

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • avatar