We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f034aee commit 076d800Copy full SHA for 076d800
1 file changed
scripts/webpack.general.config.js
@@ -1,4 +1,5 @@
1
const path = require("path");
2
+const os = require("os");
3
const environment = process.env.NODE_ENV || "development";
4
const HappyPack = require("happypack");
5
const webpack = require("webpack");
@@ -103,7 +104,7 @@ module.exports = (options = {}) => ({
103
104
plugins: [
105
new HappyPack({
106
id: "ts",
- threads: 10,
107
+ threads: os.cpus().length - 1,
108
loaders: [{
109
path: "ts-loader",
110
query: {
0 commit comments