skip-webpack-plugin
A plugin to skip another plugin and print a log
Last updated 10 years ago by jiyinyiyong .
MIT · Repository · Bugs · Original npm
$ cnpm install skip-webpack-plugin 
SYNC missed versions from official npm registry.

Skip Webpack Plugin

npm i --save-dev skip-webpack-plugin

You many need to skip a plugin under certain condition, use this:

SkipPlugin = require 'skip-webpack-plugin'
plugins: [
  new webpack.optimize.CommonsChunkPlugin 'vendor', 'vendor.[chunkhash:8].js'
  if info.isMinified
    new webpack.optimize.UglifyJsPlugin sourceMap: false
  else
    new SkipPlugin info: 'UglifyJsPlugin skipped'
  new ExtractTextPlugin 'style.[chunkhash:8].css'
  new webpack.DefinePlugin {"process.env": {NODE_ENV: JSON.stringify('production')}}
]

License

MIT

Current Tags

  • 0.1.1                                ...           latest (10 years ago)

1 Versions

  • 0.1.1                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org