Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ant-tool/parallel-compress
- Owner: ant-tool
- Created: 2016-08-08T05:39:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T08:08:26.000Z (over 7 years ago)
- Last Synced: 2024-12-07T21:56:24.649Z (about 2 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 3
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
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;
}
});
```