🤷♀️ Webpack plugin that does nothing.
MIT License
BEST PRACTICES 👉 https://github.com/webpack/webpack/issues/5493#issuecomment-321705298
Webpack plugin that does nothing
npm i noop-webpack-plugin -D
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()
]
}
MIT