Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ant-tool/parallel-compress

compress js paraller
https://github.com/ant-tool/parallel-compress

Last synced: 27 days ago
JSON representation

compress js paraller

Awesome Lists containing this project

README

        

# parallel-compress

## Usage

```
const compress = require('parallel-compress');
webpackConfig.plugins.push(new compress());
```

## Notice

不需要 uglify 插件: `webpack.optimize.UglifyJsPlugin`

```
webpackConfig.plugins.some(function(plugin, i) {
if (plugin instanceof webpack.optimize.UglifyJsPlugin) {
webpackConfig.plugins.splice(i, 1);
return true;
}
});
```