Skip to content

QingWei-Li/noop-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BEST PRACTICES 👉 webpack/webpack#5493 (comment)

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

About

🤷‍♀️ Webpack plugin that does nothing.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published