mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
refactor: enable css thread pool (#3598)
This commit is contained in:
parent
8af501829a
commit
7998516b85
@ -53,10 +53,6 @@ export default class PerfLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
poolOneOf(poolName, oneOfRules) {
|
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, {
|
return oneOfRules.map(rule => Object.assign({}, rule, {
|
||||||
use: this.pool(poolName, rule.use)
|
use: this.pool(poolName, rule.use)
|
||||||
}))
|
}))
|
||||||
|
@ -112,7 +112,7 @@
|
|||||||
"server-destroy": "^1.0.1",
|
"server-destroy": "^1.0.1",
|
||||||
"std-env": "^1.3.0",
|
"std-env": "^1.3.0",
|
||||||
"style-resources-loader": "^1.1.0",
|
"style-resources-loader": "^1.1.0",
|
||||||
"thread-loader": "^1.1.5",
|
"thread-loader": "^1.2.0",
|
||||||
"time-fix-plugin": "^2.0.3",
|
"time-fix-plugin": "^2.0.3",
|
||||||
"uglifyjs-webpack-plugin": "^1.2.7",
|
"uglifyjs-webpack-plugin": "^1.2.7",
|
||||||
"upath": "^1.1.0",
|
"upath": "^1.1.0",
|
||||||
|
@ -7156,9 +7156,9 @@ text-table@^0.2.0, text-table@~0.2.0:
|
|||||||
version "0.2.0"
|
version "0.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
|
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
|
||||||
|
|
||||||
thread-loader@^1.1.5:
|
thread-loader@^1.2.0:
|
||||||
version "1.1.5"
|
version "1.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/thread-loader/-/thread-loader-1.1.5.tgz#7f9d6701f773734fff1832586779021ab8571917"
|
resolved "https://registry.yarnpkg.com/thread-loader/-/thread-loader-1.2.0.tgz#35dedb23cf294afbbce6c45c1339b950ed17e7a4"
|
||||||
dependencies:
|
dependencies:
|
||||||
async "^2.3.0"
|
async "^2.3.0"
|
||||||
loader-runner "^2.3.0"
|
loader-runner "^2.3.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user