https://github.com/qingwei-li/noop-webpack-plugin
🤷♀️ Webpack plugin that does nothing.
https://github.com/qingwei-li/noop-webpack-plugin
noop webpack webpack-plugin webpack2
Last synced: about 1 year ago
JSON representation
🤷♀️ Webpack plugin that does nothing.
- Host: GitHub
- URL: https://github.com/qingwei-li/noop-webpack-plugin
- Owner: QingWei-Li
- License: mit
- Created: 2017-02-26T03:59:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-31T07:10:15.000Z (over 7 years ago)
- Last Synced: 2024-04-14T01:40:18.596Z (about 2 years ago)
- Topics: noop, webpack, webpack-plugin, webpack2
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**BEST PRACTICES 👉 https://github.com/webpack/webpack/issues/5493#issuecomment-321705298**
# noop-webpack-plugin
[](https://www.npmjs.com/package/noop-webpack-plugin)
> Webpack plugin that does nothing
## Installation
```shell
npm i noop-webpack-plugin -D
```
## Usage
```javascript
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