trivago / parallel-webpack

Builds multi-config webpack projects in parallel
BSD 3-Clause "New" or "Revised" License
1.48k stars 96 forks source link

does not work with webpack 5 persistent cache #110

Closed sunchanglong closed 3 years ago

sunchanglong commented 3 years ago

use ('parallel-webpack').run to compile multiple webpack configs with cache filesystem options

paralell-webpack run options

{
    watch: false,
    maxRetries: 1,
    stats: false, // defaults to false
    maxConcurrentWorkers: 2 // use 2 workers
}

create .cache directory

not creawte .cache directory

Steps to reproduce

set run method options 

{
    watch: false,
    maxRetries: 1,
    stats: false, // defaults to false
    maxConcurrentWorkers: 2 // use 2 workers
}

stats: false. note: it will create .cache directory if set stats: true

Provide your Environment details