0.2.3 • Published 7 years ago

cleanifyjs-webpack-plugin v0.2.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

This webpack plugin removes comments and unnecessary white spaces and semicolons from JS codes. It does not add or change anything else. This plugin does not generate source map.

Usage

const CleanifyJsPlugin = require('cleanifyjs-webpack-plugin')

const myWebpackConfig = {
  entry: [ ... ],
  output: { ... },
  resolve: { ... },
  module: { ... },
  plugins: {
    ...
    new CleanifyJsPlugin(),
    ...
  },
  ...
}

Options

None.

Test

npm run test

Notes

If you want to reduce the size of your code, UglifyJS plugin is probably what you need. Some notes of this plugin:

  • UglifyJS is slower than this plugin and will be much slower if you generate source map. If you really need faster processing time and still want to reduce you code size while maintaining readability without generating source map, this plugin is pretty good for that.

  • The produced codes will be larger in size compared to UglifyJS'. It will not differ too much after gzip though.

  • New lines are kept but repeating new lines will be removed. Since this plugin does not add anything to your code, it cannot add additional semicolons to concat two lines of codes.

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago