refactor: PerfLoader has been filterd by parallel build enabled

This commit is contained in:
Clark Du 2018-03-29 15:26:04 +08:00
parent 7c9c4a5017
commit c4ff71438c
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -24,10 +24,6 @@ export default class PerfLoader {
} }
warmup() { warmup() {
if (!this.options.build.parallel) {
return
}
threadLoader.warmup(this.workerPools.js, ['babel-loader', 'babel-preset-env']) threadLoader.warmup(this.workerPools.js, ['babel-loader', 'babel-preset-env'])
threadLoader.warmup(this.workerPools.css, ['css-loader']) threadLoader.warmup(this.workerPools.css, ['css-loader'])
} }