This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

escompress-webpack-plugin

0.5.1 • Public • Published

escompress-webpack-plugin

ESCompress plugin for Webpack.

Installation

npm install --save-dev escompress-webpack-plugin

Usage

Try not to use the -p option when using Webpack CLI as it will add the UglifyJsPlugin and might cause problems.

In your webpack.config.js:

var ESCompressPlugin = require('escompress-webpack-plugin');
var path = require('path');
 
module.exports = {
  entry: [path.join(__dirname, './index.js')],
  output: {
    filename: '[name].js',
    path: path.join(__dirname + '/dist')
  },
  plugins: [
    new ESCompressPlugin({
      // options
    })
  ]
};

See example for a full example.

ESCompressPlugin can also take any options that are valide for the Babel API: http://babeljs.io/docs/usage/options/

Have a look at ESCompress for the options that are different to Babel's normal default.

Package Sidebar

Install

npm i escompress-webpack-plugin

Weekly Downloads

2

Version

0.5.1

License

MIT

Last publish

Collaborators

  • sheepsteak