Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

feat: add support for parallelization && caching (options.parallel) #77

Merged
merged 35 commits into from
Jul 20, 2017
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b9ff34b
refactor: minify()
aui Jul 8, 2017
43208ec
add: Use multi-process and cache to speed up the build
aui Jul 8, 2017
754037c
add: maxWorkers、cache、cacheDirectory
aui Jul 8, 2017
f3f0656
test: Disable caching
aui Jul 8, 2017
04ea42b
Use multi-process and cache to speed up the build
aui Jul 8, 2017
7e9c080
fix: cache bug
aui Jul 8, 2017
acd748b
test: Disable caching
aui Jul 8, 2017
aca16f4
test: uglify
aui Jul 9, 2017
67ae3fb
merge: upstream/master
aui Jul 10, 2017
8e50528
Keep the "WebPack-default" consistent
aui Jul 10, 2017
744a435
refactor: options.parallel
aui Jul 10, 2017
90ef4d4
refactor
aui Jul 10, 2017
289f5d0
refactor: compute-cluster -> worker-farm
aui Jul 10, 2017
2f63c88
fix: options.parallel
aui Jul 10, 2017
bd20b62
test: Disable caching
aui Jul 10, 2017
b2537a3
test: worker.js
aui Jul 10, 2017
36f455e
test: coverage
aui Jul 10, 2017
1a51733
test: fix
aui Jul 11, 2017
24dcfb4
refactor
aui Jul 11, 2017
44aff1c
refactor: options.parallel.workers
aui Jul 11, 2017
b944ffa
refactor: serialization
aui Jul 11, 2017
b7fe125
refactor: serialization
aui Jul 12, 2017
48fee75
refactor: rename the internal variable
aui Jul 12, 2017
5d1d3ec
test: options.parallel
aui Jul 12, 2017
16a270e
refactor: remove `Date`
aui Jul 12, 2017
68d6b58
refactor: serialization
aui Jul 13, 2017
fdea537
refactor: use eslint for serialization checks
aui Jul 17, 2017
9ecb608
refactor: remove eslint
aui Jul 18, 2017
50035c5
refactor: the default configuration does not use "parallel"
aui Jul 18, 2017
29ec4b1
refactor: rename variable
aui Jul 19, 2017
7051b8e
test: remove private API
aui Jul 19, 2017
cef8262
refactor: safeguard to not spawn more workers
aui Jul 19, 2017
3a68612
add: options.parallel
aui Jul 19, 2017
3aebef6
test: clean up
aui Jul 20, 2017
e53ae99
refactor: buildError
aui Jul 20, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ This plugin supports UglifyJS features as discussed below:
| include | RegExp, Array<RegExp> | | Test only `include` files. |
| exclude | RegExp, Array<RegExp> | | Files to `exclude` from testing. |
| warningsFilter | function(source) -> boolean | | Allow to filter uglify warnings (since webpack 2.3.0) |
| parallel | boolean, object | false | Use multi-process parallel running and file cache to improve the build speed. |

<h2 align="center">Mangling</h2>

Expand Down Expand Up @@ -117,6 +118,14 @@ The `extractComments` option can be
- `banner`: The banner text that points to the extracted file and will be added on top of the original file. will be added to the original file. Can be `false` (no banner), a `string`, or a `function (string) -> string` that will be called with the filename where extracted comments have been stored. Will be wrapped into comment.
Default: `/*! For license information please see foo.js.LICENSE */`

<h2 align="center">Run in parallel</h2>

The `parallel` option can be

- `true`: Enable multi-process parallel running with file cache
- an `object` consisting of the following keys, all optional:
- `workers`: The maximum number of concurrent runs. If it is `true`, it is equal to `require('os').cpus().length - 1`.
- `cache`: Enable file caching. If it is `true`, it is equal to `"node_modules/.cache/uglifyjs-webpack-plugin"`.

<h2 align="center">Maintainers</h2>

Expand Down
Loading