mirror of
https://github.com/danog/code-server.git
synced 2024-11-27 04:45:52 +01:00
Fixes calculating number of threads for HappyPack (#10)
This commit is contained in:
parent
3b48c57861
commit
14ead1a62f
@ -105,7 +105,7 @@ module.exports = (options = {}) => ({
|
|||||||
plugins: [
|
plugins: [
|
||||||
new HappyPack({
|
new HappyPack({
|
||||||
id: "ts",
|
id: "ts",
|
||||||
threads: os.cpus().length - 1,
|
threads: Math.max(os.cpus().length - 1, 1),
|
||||||
loaders: [{
|
loaders: [{
|
||||||
path: "ts-loader",
|
path: "ts-loader",
|
||||||
query: {
|
query: {
|
||||||
|
Loading…
Reference in New Issue
Block a user