mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
refactor: temporarily disable css thread pool
This commit is contained in:
parent
df101461e8
commit
855c0eaabe
@ -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)
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user