mirror of
https://github.com/coder/code-server.git
synced 2024-12-26 11:12:07 +03:00
Use number of cpus - 1 for HappyPack
This commit is contained in:
parent
f034aee26e
commit
076d80081d
@ -1,4 +1,5 @@
|
||||
const path = require("path");
|
||||
const os = require("os");
|
||||
const environment = process.env.NODE_ENV || "development";
|
||||
const HappyPack = require("happypack");
|
||||
const webpack = require("webpack");
|
||||
@ -103,7 +104,7 @@ module.exports = (options = {}) => ({
|
||||
plugins: [
|
||||
new HappyPack({
|
||||
id: "ts",
|
||||
threads: 10,
|
||||
threads: os.cpus().length - 1,
|
||||
loaders: [{
|
||||
path: "ts-loader",
|
||||
query: {
|
||||
|
Loading…
Reference in New Issue
Block a user