refactor: temporarily disable css thread pool

This commit is contained in:
Clark Du 2018-04-02 18:22:42 +08:00
parent df101461e8
commit 855c0eaabe
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -54,6 +54,10 @@ export default class PerfLoader {
}
poolOneOf(poolName, oneOfRules) {
// disable css thread pool since vue-style-loader needs options like: target
if (poolName === 'css' && !this.options.build.extractCSS) {
return oneOfRules
}
return oneOfRules.map(rule => Object.assign({}, rule, {
use: this.pool(poolName, rule.use)
}))