gdborton / webpack-parallel-uglify-plugin

A faster uglifyjs plugin.
466 stars 34 forks source link

Add worker count option #15

Closed jaxgeller closed 7 years ago

jaxgeller commented 7 years ago
new ParallelUglifyPlugin({
  cacheDir: false, 
  workerCount: 4
})
coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.5%) to 70.149% when pulling d0647b92ce3dca2985ef4877941e94515fc26e4d on jaxgeller:workercount-option into 7b3ecd96f63485d2b25315b2f26d9ae40a479404 on gdborton:master.

jaxgeller commented 7 years ago

@gdborton is this something you'd consider merging? If not I can close. In my testing I found using the number of cpu cores to have the best compile times for our build.

gdborton commented 7 years ago

Yea I can merge this, been a bit tied up.

gdborton commented 7 years ago

Also, should be noted for anyone looking at this... CPUs - 1 was chosen in an effort to not lock up dev's machines by hogging all the CPU.